2

我是 Linux 和 Centos6 的新手。我刚刚购买了服务器并想在其中部署我的网络应用程序。我在编译我的 servlet 类时遇到错误。bash: javac: command not found当我尝试编译我的类时,它向我展示了。但是当我在'/usr/lib/jvm/java-1.6.0/bin'中检查我的课程时,我找到了我的javac。然后我在命令的帮助下检查了 javac./javac我得到了 ERROR

[root:ip_address.com]# ./javac
# There is insufficient memory for the Java Runtime Environment to continue.
# pthread_getattr_np
Error occurred during initialization of VM
    java.lang.OutOfMemoryError: unable to create new native thread

当创建 < 100 个线程时,我按照“”Java `OutOfMemoryError` 中所示的步骤 操作 “”,它显示了获取限制的命令。

'[root:ipaddress.com]#  ulimit -a
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 278528
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1024
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited'

[root:ipaddress.com]#  top
bash: top: command not found
4

0 回答 0