Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jboss5.1 eap,insufficient memory error

 
Bushra Binte
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)?
 
Bushra Binte
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
    Posts: 5852
    7
    Android Eclipse IDE Ubuntu
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 60
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic