PDA

View Full Version : CPanel and Java. Help?


Protollix
04-25-03, 09:50 AM
Ok, I installed the tomcat distribution from CPanel and I have tomcat working.

However, I also wanted to allow my users to be able to compile their java source code for servlets right on the server.

Whenever a user OTHER than root runs anything java related, even something so simple as "java -version" they get:
Error occurred during initialization of VM
java.lang.OutOfMemoryError

then when it finally does run (by increasing the heap) it crashes with:

Unexpected Signal : 11 occurred at PC=0x4032EB45
Function=start_thread__2osP6Thread+0x2D
Library=/usr/java/j2sdk1.4.0/jre/lib/i386/client/libjvm.so

Current Java thread:

Dynamic libraries:
08048000-0804d000 r-xp 00000000 03:03 4398797 /usr/java/j2sdk1.4.0/bin/java
0804d000-0804e000 rw-p 00004000 03:03 4398797 /usr/java/j2sdk1.4.0/bin/java
40000000-40012000 r-xp 00000000 03:03 3646511 /lib/ld-2.2.5.so
40012000-40013000 rw-p 00012000 03:03 3646511 /lib/ld-2.2.5.so
40013000-40019000 r--s 00000000 03:03 4644150 /usr/lib/gconv/gconv-modules.cache
40019000-4001a000 r--p 00000000 03:03 1291811 /usr/lib/locale/en_US.iso885915/LC_IDENTIFICATION
4001a000-4001b000 r--p 00000000 03:03 1291812 /usr/lib/locale/en_US.iso885915/LC_MEASUREMENT
4001b000-40029000 r-xp 00000000 03:03 3646592 /lib/libpthread-0.9.so
40029000-40030000 rw-p 0000e000 03:03 3646592 /lib/libpthread-0.9.so
40031000-40033000 r-xp 00000000 03:03 3646543 /lib/libdl-2.2.5.so
40033000-40034000 rw-p 00001000 03:03 3646543 /lib/libdl-2.2.5.so
40034000-40152000 r-xp 00000000 03:03 3646505 /lib/libc-2.2.5.so
40152000-40157000 rw-p 0011e000 03:03 3646505 /lib/libc-2.2.5.so
4015b000-4041e000 r-xp 00000000 03:03 1455431 /usr/java/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
4041e000-40566000 rw-p 002c2000 03:03 1455431 /usr/java/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
4057a000-4058b000 r-xp 00000000 03:03 3646513 /lib/libnsl-2.2.5.so
4058b000-4058c000 rw-p 00011000 03:03 3646513 /lib/libnsl-2.2.5.so
4058e000-405c2000 r-xp 00000000 03:03 343489 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
405c2000-405ce000 rw-p 00033000 03:03 343489 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
405d0000-405f0000 r-xp 00000000 03:03 3646570 /lib/libm-2.2.5.so
405f0000-405f1000 rw-p 0001f000 03:03 3646570 /lib/libm-2.2.5.so
405f1000-405fa000 r-xp 00000000 03:03 1798823 /usr/java/j2sdk1.4.0/jre/lib/i386/native_threads/libhpi.so
405fa000-405fb000 rw-p 00008000 03:03 1798823 /usr/java/j2sdk1.4.0/jre/lib/i386/native_threads/libhpi.so
405fb000-4060c000 r-xp 00000000 03:03 1439053 /usr/java/j2sdk1.4.0/jre/lib/i386/libverify.so
4060c000-4060e000 rw-p 00010000 03:03 1439053 /usr/java/j2sdk1.4.0/jre/lib/i386/libverify.so
4060e000-4062f000 r-xp 00000000 03:03 1439041 /usr/java/j2sdk1.4.0/jre/lib/i386/libjava.so
4062f000-40631000 rw-p 00020000 03:03 1439041 /usr/java/j2sdk1.4.0/jre/lib/i386/libjava.so
40632000-40646000 r-xp 00000000 03:03 1439054 /usr/java/j2sdk1.4.0/jre/lib/i386/libzip.so
40646000-40649000 rw-p 00013000 03:03 1439054 /usr/java/j2sdk1.4.0/jre/lib/i386/libzip.so
40649000-41cc1000 r--s 00000000 03:03 2224088 /usr/java/j2sdk1.4.0/jre/lib/rt.jar
41d03000-41d1a000 r--s 00000000 03:03 2224089 /usr/java/j2sdk1.4.0/jre/lib/sunrsasign.jar
41d1a000-41d88000 r--s 00000000 03:03 2224082 /usr/java/j2sdk1.4.0/jre/lib/jsse.jar
41d88000-41d9b000 r--s 00000000 03:03 2224081 /usr/java/j2sdk1.4.0/jre/lib/jce.jar
41d9b000-4201c000 r--s 00000000 03:03 2224070 /usr/java/j2sdk1.4.0/jre/lib/charsets.jar
440c4000-440c5000 r--p 00000000 03:03 1291816 /usr/lib/locale/en_US.iso885915/LC_TELEPHONE
440c5000-440c6000 r--p 00000000 03:03 1291810 /usr/lib/locale/en_US.iso885915/LC_ADDRESS
440c6000-440c7000 r--p 00000000 03:03 1291814 /usr/lib/locale/en_US.iso885915/LC_NAME
440c7000-440c8000 r--p 00000000 03:03 1291815 /usr/lib/locale/en_US.iso885915/LC_PAPER
440c8000-440c9000 r--p 00000000 03:03 1308451 /usr/lib/locale/en_US.iso885915/LC_MESSAGES/SYS_LC_MESSAGES
440c9000-440ca000 r--p 00000000 03:03 1291813 /usr/lib/locale/en_US.iso885915/LC_MONETARY
440ca000-440d0000 r--p 00000000 03:03 2011536 /usr/lib/locale/en_US.iso885915/LC_COLLATE
4c150000-4c17b000 r--p 00000000 03:03 1013829 /usr/lib/locale/en_US.iso885915/LC_CTYPE
4c17b000-4c17c000 r--p 00000000 03:03 1291817 /usr/lib/locale/en_US.iso885915/LC_TIME
4c17c000-4c17d000 r--p 00000000 03:03 261765 /usr/lib/locale/en_US.iso885915/LC_NUMERIC

Local Time = Fri Apr 25 12:45:56 2003
Elapsed Time = 0
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002D3
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
#
# An error report file has been saved as hs_err_pid23356.log.
# Please refer to the file for further information.
#
Aborted (core dumped)

on top of that, tomcat seems to use about 30 processes of "java" all using 27M of ram each (!!). Anyway to reduce the number of processes?

Anyone familiar with this?

Protollix
04-25-03, 09:57 AM
ooer, this seems to work:
javac -J-mx12M

that doesn't crash and no out of memory errors 8)