我正在一个Java jar的Amazon实例上运行一些web应用程序,但是在12个小时左右之后,它总是会耗尽内存。下面是写入文件的错误消息:
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (malloc) failed to allocate 12288 bytes for
committing reserved memory.
Possible reasons:
The syst
我有一个Java应用程序来生成Excel工作表。我是基于Apache的BigGridDemo示例来生成Excel(xlsx)的。
我的想法是
fileSubstitute 创建模板工作簿,创建工作表和全局对象,如单元格样式、数字格式等。创建一个应用程序,该应用程序以生成的数据在模板中将数据流到文本中。
在Linux中,在第三步中,JVM使用以下信息崩溃
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x000000307a772c44, pid=11781, t
我正试图在我的本地Ubuntu机器上安装elasticsearch,如下所示:
,当尝试运行'./elasticsearch‘时,得到以下错误:
Java HotSpot(TM) 64-Bit Server VM warning: INFO: <br>
os::commit_memory(0x00007f0e50cc0000, 64075595776, 0) failed; <br>
error='Cannot allocate memory' (errno=12) <br>
There is insufficient mem
我在linux机器上,试图运行一个启动java应用程序的shell脚本。它昨天运行得很好,但是今天我得到了这个错误:
Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:714)
at java.lang.ref.Reference.<clinit&
我有一个从shell脚本触发的java文件。如果我在命令行执行外壳脚本,它会执行java文件,没有任何问题,但如果我从浏览器执行这个外壳脚本(我有一个在linux服务器上执行这个外壳脚本的index.php ),它不会执行外壳脚本中的java文件。如果我从shell脚本中删除java执行行,则shell脚本可以正确执行。
下面是我从浏览器执行时收到的错误。
Error From browser:Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007fcf589ac000, 2555904, 1) fa
我正在运行一个应用程序使用docker-组合。其中一个容器是一个selenium/standalone-chrome映像。我给出的是2g的shm_size。
当没有高负载时,应用程序可以正常工作。但是,我注意到,每当出现对selenium容器的并发请求(8核计算机上的9个并发请求),Selenium就会悄然失败。它就这么死了然后就死定了。未处理后续请求。日志里什么都没有。最后一条信息是:
17:41:00.083 INFO [RemoteSession$Factory.lambda$performHandshake$0] - Started new session 5da2cd57f4e8e4
我有两台linux机器(都是VM),一台有12 8GB内存,另一台有8GB内存。
我尝试在两台机器上启动相同的java程序,最大堆大小(使用-Xmx标志)。以下是我得到的结果。
12机器:9460 machine
8GB机器:4790 8GB
如果我指定超过上限的最大堆大小,则会得到低于错误的结果。
Error occurred during initialization of VM
Could not allocate metaspace: 1073741824 bytes
我检查了两个系统中的空闲内存(使用free命令),并得到了如下结果。
12 3GB的机器:大约3G