在 AWS 控制台中搜索资源是一项艰巨的任务。这个答案帮助我找到了我不认识的已使用资源(例如我从未使用过的区域)。幸运的是账单仍然是 0。但我宁愿清理桌子。一个一个地删除一个资源是非常乏味的并且需要很多时间。有没有一些简单的方法(除了关闭帐户)如何删除所有使用的资源?
主页
/
user-210494
Leos Literak's questions
Leos Literak
Asked:
2020-06-19 07:04:35 +0800 CST
我有一台带有多个 tomcat 应用程序的 Azure 机器。我正在配置它们并重新启动它们,直到突然带有 jasper 的 tomcat 在部署时停止。没有错误,最后一句是
Jun 18 16:49:10 RE1 catalina.sh: 18-Jun-2020 16:49:10.273 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.23
Jun 18 16:49:10 RE1 catalina.sh: 18-Jun-2020 16:49:10.281 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/app/jasper/apache-tomcat-8.0.23/webapps/jasperserver
我发现这可能是熵丢失造成的,所以我修改了JAVA_OPTS:
export JAVA_OPTS="-Xmx2048m -Djava.security.egd=file:/dev/./urandom"
好吧,它没有帮助。这是线程转储的一部分。知道如何解决这个问题吗?
Jun 18 16:52:19 RE1 catalina.sh: Full thread dump OpenJDK 64-Bit Server VM (25.252-b09 mixed mode):
Jun 18 16:52:19 RE1 catalina.sh: "localhost-startStop-1" #15 daemon prio=5 os_prio=0 tid=0x00007f59a0002000 nid=0x121cb runnable [0x00007f59ea1a9000]
Jun 18 16:52:19 RE1 catalina.sh: java.lang.Thread.State: RUNNABLE
Jun 18 16:52:19 RE1 catalina.sh: at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
Jun 18 16:52:19 RE1 catalina.sh: at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
Jun 18 16:52:19 RE1 catalina.sh: at java.io.File.isDirectory(File.java:849)
Jun 18 16:52:19 RE1 catalina.sh: at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1983)
Jun 18 16:52:19 RE1 catalina.sh: at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988)
Jun 18 16:52:19 RE1 catalina.sh: at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988)
Jun 18 16:52:19 RE1 catalina.sh: at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771)
Jun 18 16:52:19 RE1 catalina.sh: - locked <0x00000000830ccfe8> (a org.apache.catalina.startup.ContextConfig)
Jun 18 16:52:19 RE1 catalina.sh: at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
Jun 18 16:52:19 RE1 catalina.sh: at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
Jun 18 16:52:19 RE1 catalina.sh: at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
Jun 18 16:52:19 RE1 catalina.sh: at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5066)
Jun 18 16:52:19 RE1 catalina.sh: - locked <0x00000000830ccda8> (a org.apache.catalina.core.StandardContext)
Jun 18 16:52:19 RE1 catalina.sh: at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
Jun 18 16:52:19 RE1 catalina.sh: - locked <0x00000000830ccda8> (a org.apache.catalina.core.StandardContext)
Jun 18 16:52:19 RE1 catalina.sh: at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
Jun 18 16:52:19 RE1 catalina.sh: at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
Jun 18 16:52:20 RE1 catalina.sh: at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
Jun 18 16:52:20 RE1 catalina.sh: at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1101)
Jun 18 16:52:20 RE1 catalina.sh: "Catalina-startStop-1" #14 daemon prio=5 os_prio=0 tid=0x00007f5a086ad800 nid=0x121ca waiting on condition [0x00007f59ea2ae000]
Jun 18 16:52:20 RE1 catalina.sh: java.lang.Thread.State: WAITING (parking)
Jun 18 16:52:20 RE1 catalina.sh: at sun.misc.Unsafe.park(Native Method)
Jun 18 16:52:20 RE1 catalina.sh: - parking to wait for <0x00000000830db920> (a java.util.concurrent.FutureTask)
Jun 18 16:52:20 RE1 catalina.sh: at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
Jun 18 16:52:20 RE1 catalina.sh: at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:429)
Jun 18 16:52:20 RE1 catalina.sh: at java.util.concurrent.FutureTask.get(FutureTask.java:191)
Jun 18 16:52:20 RE1 catalina.sh: at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1016)
Jun 18 16:52:20 RE1 catalina.sh: "NioBlockingSelector.BlockPoller-1" #13 daemon prio=5 os_prio=0 tid=0x00007f5a0869f800 nid=0x121c8 runnable [0x00007f59ea3af000]
Jun 18 16:52:20 RE1 catalina.sh: java.lang.Thread.State: RUNNABLE
Jun 18 16:52:20 RE1 catalina.sh: at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
Jun 18 16:52:20 RE1 catalina.sh: at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
Jun 18 16:52:20 RE1 catalina.sh: "Service Thread" #8 daemon prio=9 os_prio=0 tid=0x00007f5a08135000 nid=0x121c4 runnable [0x0000000000000000]
Jun 18 16:52:20 RE1 catalina.sh: java.lang.Thread.State: RUNNABLE
Jun 18 16:52:20 RE1 catalina.sh: "C1 CompilerThread2" #7 daemon prio=9 os_prio=0 tid=0x00007f5a08122000 nid=0x121c3 waiting on condition [0x0000000000000000]
Jun 18 16:52:20 RE1 catalina.sh: "Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x00007f5a080e0000 nid=0x121be in Object.wait() [0x00007f59ebdfc000]
Jun 18 16:52:20 RE1 catalina.sh: java.lang.Thread.State: WAITING (on object monitor)
Jun 18 16:52:20 RE1 catalina.sh: at java.lang.Object.wait(Native Method)
Jun 18 16:52:20 RE1 catalina.sh: - waiting on <0x00000000831fc2d8> (a java.lang.ref.Reference$Lock)
Jun 18 16:52:20 RE1 catalina.sh: at java.lang.Object.wait(Object.java:502)
Jun 18 16:52:20 RE1 catalina.sh: at java.lang.ref.Reference.tryHandlePending(Reference.java:191)
Jun 18 16:52:20 RE1 catalina.sh: - locked <0x00000000831fc2d8> (a java.lang.ref.Reference$Lock)
Jun 18 16:52:20 RE1 catalina.sh: at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)
Jun 18 16:52:20 RE1 catalina.sh: "main" #1 prio=5 os_prio=0 tid=0x00007f5a0804c000 nid=0x121b8 waiting on condition [0x00007f5a10cc5000]
Jun 18 16:52:20 RE1 catalina.sh: java.lang.Thread.State: WAITING (parking)
Jun 18 16:52:20 RE1 catalina.sh: at sun.misc.Unsafe.park(Native Method)
Jun 18 16:52:20 RE1 catalina.sh: - parking to wait for <0x0000000082d0f1e8> (a java.util.concurrent.FutureTask)
Jun 18 16:52:20 RE1 catalina.sh: at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
Jun 18 16:52:20 RE1 catalina.sh: at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:429)
Jun 18 16:52:20 RE1 catalina.sh: at java.util.concurrent.FutureTask.get(FutureTask.java:191)
Jun 18 16:52:20 RE1 catalina.sh: at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:917)
Leos Literak
Asked:
2020-06-04 08:46:36 +0800 CST
我发现要将 LUA 与 Nginx 一起使用,我需要:
- 使用 OpenResty 平台:https ://openresty.org/en/installation.html
- 支付 getpagespeed 订阅以获取模块 RPM
- 从源代码构建带有 LUA 模块的 Nginx,例如https://tarunlalwani.com/post/building-nginx-with-lua/
我想知道如何构建模块本身,然后将其加载到打包的 Nginx 中。我不愿意构建 Nginx,因为这意味着我会丢失包更新。我怎样才能做到这一点?