This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes jboss5.1 eap,insufficient memory error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jboss5.1 eap,insufficient memory error" Watch "jboss5.1 eap,insufficient memory error" New topic
Author

jboss5.1 eap,insufficient memory error

Bushra Binte
Ranch Hand

Joined: Nov 07, 2006
Posts: 60
Hi,
M trying to start jboss.The version i am using is jboss-eap-5.1.
OS:win XP
Mem:1.99GB
Hard Disk: 8GB
JVM:jdk1.6.0_25
java_opts:-Xms1024m -Xmx1024m

When i run run.bat,with -c production -b 0.0.0.0, i get the jboss home page,When i click on admin-console link,login page loads.
On submit with credentials ,gets the "page cannot be displayed" on the browser and following error on the console.

Error:
" There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (malloc) failed to allocate 32756 bytes for ChunkPool
:allocatePress any key to continue . . ."

Also noticed that system becomes very slow,max cpu utilization 80-90%
Any idea why it is happening..
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

1gb should be plenty of heap to run EAP 5. Have you verified that EAP is actually using the heap options you set? Have you monitored the garbage collector (using -verbose:gc or some similar option)?


JBoss In Action
Bushra Binte
Ranch Hand

Joined: Nov 07, 2006
Posts: 60
tried using jconsole to view the heap size:here are the readings:

  • Current heap size: 15,759 kbytes
    Maximum heap size: 253,440 kbytes
    Committed memory: 38,384 kbytes

    Free physical memory: 1,339,280 kbytes
    Total swap space: 3,490,836 kbytes
    Free swap space: 1,842,948 kbytes

  • And, when jboss boots up java_opts shows up as "-Xms1024m -Xmx1024m"
    This time i started jboss with default configuration as in >run.bat
    When i type in the url: http://localhost:8080/
    i get the home page of jboss,On click of 'jmx-console' link,login page loads.On submission of page with credentials,gets "page cannot be displayed" in browser and on jboss console,gets out of memeory error.Below is the stack trace:

    Peter Johnson
    author
    Bartender

    Joined: May 14, 2008
    Posts: 5811
        
        7

    There is an inconsistency here. You claim the console output shows both -Xmx and -Xmx set to 1024m. Yet you also say that jconsole tells you max heap is only 256mb.

    Also, please add -verbose:gc to the JAVA_OPTS, that is usually better that using jconsole for monitoing garbage collection.
    Bushra Binte
    Ranch Hand

    Joined: Nov 07, 2006
    Posts: 60
    The problem is resolved as it was caused by limited memory available on the machine and i was trying to allocate more than that.
    set the java_opts to -XMs512m -Xmx512m
    Thanks for the help.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: jboss5.1 eap,insufficient memory error
     
    Similar Threads
    Server starts but page can't display (JBoss AS 5.1.0.GA)
    jboss-eap-4.3 running default server JARDeployer fails
    JBOSS 4.3.0 EAP Clustering with Apache HTTP Server 2.2.11
    What's the JBoss 5.x EAP default web console password?
    JBoss startup errors