Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/332.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法重新启动Jenkins-内存错误_Java_Jenkins - Fatal编程技术网

Java 无法重新启动Jenkins-内存错误

Java 无法重新启动Jenkins-内存错误,java,jenkins,Java,Jenkins,重新启动Jenkins时,我遇到以下错误 INFO: Ready to receive data from Gerrit: Gerrit-QA Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000007b1480000, 246939648, 0) failed; error='C annot allocate memory' (errno=12) # # There is insufficient

重新启动Jenkins时,我遇到以下错误

INFO: Ready to receive data from Gerrit: Gerrit-QA
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000007b1480000, 246939648, 0) failed; error='C
annot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 246939648 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /usr/share/tomcat6/hs_err_pid29653.log

如何解决此问题?

释放一些内存?该命令是正确的sync | sudo tee/proc/sys/vm/drop_缓存或swapoff-a&&swapon-a?不,它只清除缓存。分配的内存太多,例如运行的程序太多。是否释放一些内存?命令正确:sync | sudo tee/proc/sys/vm/drop_caches或swapoff-a&&swapon-a?不,仅清除缓存。分配的内存太多,例如运行的程序太多。