我正在尝试为应用程序运行负载测试.为此,我在Ubuntu Vm上使用JMeter(v.2.13),具有60GB Ram和足够的CPU功率.目标是通过WebSocket连接10k用户.
但是在测试运行期间,我在ssh-console上遇到以下错误(大约1.5k到2.5k模拟用户)
OpenJDK 64-Bit Server VM warning: Attempt to protect stack guard pages failed.
OpenJDK 64-Bit Server VM warning: Attempt to deallocate stack guard pages failed.
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f20ee653000, 12288, 0) failed; error='Cannot allocate memory' (errno=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.
# An error report file with more information is saved as: …Run Code Online (Sandbox Code Playgroud) 我在linux上运行Tomcat8服务器(RedHat).它运行的机器总共有15GB Ram,我想为tomcat服务器分配11GB.目前它只有3.3GB可供使用.
我安装了openjdk 64位.
我试图设置CATALINA_OPTS到-Xms512M -Xmx11g和JAVA_OPTS到-d64 -Xms256m -Xmx12g.
我找到了几个关于setenv.sh或catalina.sh的说法,我都找不到.它不是tomcat8/bin和catalina_home以及catalina_base都指向/ root.
那么我该如何增加最大值.我的tomcat服务器的avaialable内存?
谢谢!