The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

j2re (java) on Fedora 2 fail

Discussion in 'General Discussion' started by speckados, Jan 7, 2005.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    We need use j2re for some customer.

    On any machines installed j2re without problme, but on new machines get a strangeous problem.

    If enter with wheel user and after su, become root java run with any problems.

    Code:
    java -version
    java version "1.4.2_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
    Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
    But how normal user (with bash shell) get this error:
    Code:
    java
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    I'm tryng to usefull help on Google but any solution for this problem.

    Any sugestion or idea?
     
  2. funcent

    funcent Registered

    Joined:
    Jan 12, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I am facing the same problem.
    Can anyone help us?

    I only want one additional user run the java.

    Here is the ulimit of root and the normal user

    "root ulimit"
    core file size (blocks, -c) 1000000
    data seg size (kbytes, -d) unlimited
    file size (blocks, -f) unlimited
    max locked memory (kbytes, -l) unlimited
    max memory size (kbytes, -m) unlimited
    open files (-n) 4096
    pipe size (512 bytes, -p) 8
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 14335
    virtual memory (kbytes, -v) unlimited


    "normal ulimit"
    core file size (blocks, -c) 200000
    data seg size (kbytes, -d) 200000
    file size (blocks, -f) unlimited
    max locked memory (kbytes, -l) unlimited
    max memory size (kbytes, -m) 200000
    open files (-n) 100
    pipe size (512 bytes, -p) 8
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 20
    virtual memory (kbytes, -v) 200000


    Is it because of the limit of the normal user?

    If so, how could I change the limit of a specific user?

    Thank you!
     
  3. Sash

    Sash Well-Known Member

    Joined:
    Feb 18, 2003
    Messages:
    252
    Likes Received:
    0
    Trophy Points:
    16
    Same problem, ever find a fix?

    Mike
     
  4. rangerx

    rangerx Member

    Joined:
    Jan 9, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    same error. running rhel3-es, tried sun java 1.4.2, 1.5, the redhat-extras ibm java, and cpanel's tomcat java. all give me the same error. running as root is fine (in all versions) but running as a normal user results in the following message :
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Message varries per version / distribution but its all the same. Some sort of memory error. The users do NOT have a ulimit, it shows 'unlimited'.

    Any ideas on how to fix this ? I'll loose a client if I cant get working.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Have you tried disabling the Shell/Fork Bomb protection in WHM?
     
  6. rangerx

    rangerx Member

    Joined:
    Jan 9, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I did try it, user accounts still had old ulimits. Rebooted the box and that didnt help either. I confirmed that the /etc/bashrc code was taken out too.
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Just to be sure, did you also check in /etc/profile and all of the files in /etc/profile.d/ which also often have ulimit set?
     
  8. rangerx

    rangerx Member

    Joined:
    Jan 9, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    removed those files as well, all limits went back to unlimited. this does work, but i would like the process limits in place for regular users. what i tried to do is
    if [ "$LIMITUSER" != "root" ] && [ "$LIMITUSER" != "javauser" ] in /etc/bashrc and /etc/profile.d/limits.csh and .sh but that didnt work. are there any other files the protection script touches ?
     
  9. thanatopsizer

    thanatopsizer Member

    Joined:
    Dec 5, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    try changing your && to a ||
     

Share This Page