jQuery in Action, 2nd edition*
The moose likes JBoss/WildFly and the fly likes Why my JBOSS 4.0.2 is running out of memory? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Why my JBOSS 4.0.2 is running out of memory?" Watch "Why my JBOSS 4.0.2 is running out of memory?" New topic
Author

Why my JBOSS 4.0.2 is running out of memory?

Jagmohan Negi
Greenhorn

Joined: Aug 24, 2005
Posts: 27
Hi,
Can anybody let me know why my jboss 4.0.2 is running out of memory, i have increased my heap size to 512MB but still it is consuming all of resources.
Boot Log of JBoss :

13:55:17,323 INFO [ServerInfo] Java version: 1.5.0_04,Sun Microsystems Inc.
13:55:17,323 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_04-b05,Sun Microsystems Inc.
13:55:17,324 INFO [ServerInfo] OS-System: SunOS 5.9,sparc
13:55:17,324 DEBUG [ServerInfo] Full System Properties Dump
13:55:17,325 DEBUG [ServerInfo] java.runtime.name: Java(TM) 2 Runtime Environment, Standard Edition
13:55:17,325 DEBUG [ServerInfo] jboss.server.base.dir: /opt/jboss/jboss-4.0.2/server
13:55:17,325 DEBUG [ServerInfo] java.protocol.handler.pkgs: org.jboss.net.protocol
13:55:17,325 DEBUG [ServerInfo] sun.boot.library.path: /opt/java/jdk1.5.0_04/jre/lib/sparc
13:55:17,325 DEBUG [ServerInfo] jboss.server.lib.url: file:/opt/jboss/jboss-4.0.2/server/all/lib/
13:55:17,326 DEBUG [ServerInfo] java.vm.version: 1.5.0_04-b05
13:55:17,326 DEBUG [ServerInfo] javax.management.builder.initial: org.jboss.mx.server.MBeanServerBuilderImpl
13:55:17,326 DEBUG [ServerInfo] java.vm.vendor: Sun Microsystems Inc.
13:55:17,326 DEBUG [ServerInfo] java.vendor.url: http://java.sun.com/
13:55:17,326 DEBUG [ServerInfo] path.separator: :
13:55:17,326 DEBUG [ServerInfo] java.vm.name: Java HotSpot(TM) Server VM
13:55:17,326 DEBUG [ServerInfo] file.encoding.pkg: sun.io
13:55:17,327 DEBUG [ServerInfo] sun.os.patch.level: unknown
13:55:17,327 DEBUG [ServerInfo] program.name: run.sh
13:55:17,327 DEBUG [ServerInfo] java.vm.specification.name: Java Virtual Machine Specification
13:55:17,327 DEBUG [ServerInfo] user.dir: /home/bkempt
13:55:17,327 DEBUG [ServerInfo] jboss.server.base.url: file:/opt/jboss/jboss-4.0.2/server/
13:55:17,327 DEBUG [ServerInfo] java.runtime.version: 1.5.0_04-b05
13:55:17,327 DEBUG [ServerInfo] java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment
13:55:17,328 DEBUG [ServerInfo] java.endorsed.dirs: /opt/jboss/jboss-4.0.2/lib/endorsed
13:55:17,328 DEBUG [ServerInfo] os.arch: sparc
13:55:17,328 DEBUG [ServerInfo] java.io.tmpdir: /var/tmp/
13:55:17,328 DEBUG [ServerInfo] line.separator:

13:55:17,328 DEBUG [ServerInfo] jbossmx.loader.repository.class: org.jboss.mx.loading.UnifiedLoaderRepository3
13:55:17,328 DEBUG [ServerInfo] java.vm.specification.vendor: Sun Microsystems Inc.
13:55:17,328 DEBUG [ServerInfo] os.name: SunOS
13:55:17,329 DEBUG [ServerInfo] jboss.bind.address: 0.0.0.0
13:55:17,329 DEBUG [ServerInfo] jboss.server.temp.dir: /opt/jboss/jboss-4.0.2/server/all/tmp
13:55:17,329 DEBUG [ServerInfo] jboss.home.dir: /opt/jboss/jboss-4.0.2
13:55:17,329 DEBUG [ServerInfo] sun.jnu.encoding: ISO646-US
13:55:17,329 DEBUG [ServerInfo] java.library.path: /opt/java/jdk1.5.0_04/jre/lib/sparc/server:/opt/java/jdk1.5.0_04/jre/lib/sparc:/opt/java/jdk1.5.0_04/jre/../lib/sparc:/usr/lib
13:55:17,329 DEBUG [ServerInfo] jboss.server.home.dir: /opt/jboss/jboss-4.0.2/server/all
13:55:17,330 DEBUG [ServerInfo] java.specification.name: Java Platform API Specification
13:55:17,330 DEBUG [ServerInfo] java.class.version: 49.0
13:55:17,330 DEBUG [ServerInfo] sun.management.compiler: HotSpot Server Compiler
13:55:17,330 DEBUG [ServerInfo] jboss.server.config.url: file:/opt/jboss/jboss-4.0.2/server/all/conf/
13:55:17,330 DEBUG [ServerInfo] os.version: 5.9
13:55:17,330 DEBUG [ServerInfo] jboss.home.url: file:/opt/jboss/jboss-4.0.2/
13:55:17,330 DEBUG [ServerInfo] user.home: /root
13:55:17,331 DEBUG [ServerInfo] user.timezone: US/Mountain
13:55:17,331 DEBUG [ServerInfo] java.awt.printerjob: sun.print.PSPrinterJob
13:55:17,331 DEBUG [ServerInfo] java.specification.version: 1.5
13:55:17,331 DEBUG [ServerInfo] file.encoding: ISO646-US
13:55:17,331 DEBUG [ServerInfo] jboss.server.home.url: file:/opt/jboss/jboss-4.0.2/server/all/
13:55:17,331 DEBUG [ServerInfo] user.name: root
13:55:17,331 DEBUG [ServerInfo] java.class.path: /opt/jboss/jboss-4.0.2/bin/run.jar:/lib/tools.jar
13:55:17,332 DEBUG [ServerInfo] jboss.lib.url: file:/opt/jboss/jboss-4.0.2/lib/
13:55:17,332 DEBUG [ServerInfo] jboss.server.name: all
13:55:17,332 DEBUG [ServerInfo] java.vm.specification.version: 1.0
13:55:17,332 DEBUG [ServerInfo] sun.arch.data.model: 32
13:55:17,332 DEBUG [ServerInfo] java.home: /opt/java/jdk1.5.0_04/jre
13:55:17,332 DEBUG [ServerInfo] java.specification.vendor: Sun Microsystems Inc.
13:55:17,332 DEBUG [ServerInfo] user.language: en
13:55:17,333 DEBUG [ServerInfo] java.vm.info: mixed mode
13:55:17,333 DEBUG [ServerInfo] java.version: 1.5.0_04
13:55:17,333 DEBUG [ServerInfo] java.ext.dirs: /opt/java/jdk1.5.0_04/jre/lib/ext
13:55:17,333 DEBUG [ServerInfo] jboss.server.data.dir: /opt/jboss/jboss-4.0.2/server/all/data
13:55:17,333 DEBUG [ServerInfo] sun.boot.class.path: /opt/jboss/jboss-4.0.2/lib/endorsed/resolver.jar:/opt/jboss/jboss-4.0.2/lib/endorsed/xalan.jar:/opt/jboss/jboss-4.0.2/lib/endorsed/xercesImpl.jar:/opt/jboss/jboss-4.0.2/lib/endorsed/xml-apis.jar:/opt/java/jdk1.5.0_04/jre/lib/rt.jar:/opt/java/jdk1.5.0_04/jre/lib/i18n.jar:/opt/java/jdk1.5.0_04/jre/lib/sunrsasign.jar:/opt/java/jdk1.5.0_04/jre/lib/jsse.jar:/opt/java/jdk1.5.0_04/jre/lib/jce.jar:/opt/java/jdk1.5.0_04/jre/lib/charsets.jar:/opt/java/jdk1.5.0_04/jre/classes
13:55:17,333 DEBUG [ServerInfo] java.vendor: Sun Microsystems Inc.
13:55:17,334 DEBUG [ServerInfo] file.separator: /
13:55:17,334 DEBUG [ServerInfo] java.vendor.url.bug: http://java.sun.com/cgi-bin/bugreport.cgi
13:55:17,334 DEBUG [ServerInfo] sun.cpu.endian: big
13:55:17,334 DEBUG [ServerInfo] sun.io.unicode.encoding: UnicodeBig
13:55:17,334 DEBUG [ServerInfo] sun.cpu.isalist: sparcv9+vis2 sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc
13:55:17,348 DEBUG [Server] Created system MBean: jboss.system:type=ServerInfo
13:55:17,363 DEBUG [Server] Failed to create xmbean for: org.jboss.system.ServiceController
13:55:17,403 DEBUG [ServiceController] Controller MBean online
13:55:17,404 DEBUG [Server] Created system MBean: jboss.system:service=ServiceController
13:55:17,714 DEBUG [Server] Created system XMBean: jboss.system:service=MainDeployer
13:55:17,716 DEBUG [ServiceController] Creating service jboss.system:service=MainDeployer
13:55:17,741 DEBUG [MainDeployer] Creating jboss.system:service=MainDeployer
13:55:20,108 DEBUG [MainDeployer] Created jboss.system:service=MainDeployer
13:55:20,109 DEBUG [ServiceController] Creating dependent components for: jboss.system:service=MainDeployer dependents are: []
13:55:20,109 DEBUG [ServiceController] starting service jboss.system:service=MainDeployer
13:55:20,111 DEBUG [MainDeployer] Starting jboss.system:service=MainDeployer
13:55:20,111 DEBUG [MainDeployer] Started jboss.system:service=MainDeployer
13:55:20,112 DEBUG [ServiceController] Starting dependent components for: jboss.system:service=MainDeployer dependent components: []
13:55:20,114 DEBUG [Server] Shutdown hook added
13:55:20,251 DEBUG [Server] Created system XMBean: jboss.system:service=JARDeployer
13:55:20,251 DEBUG [ServiceController] Creating service jboss.system:service=JARDeployer
13:55:20,253 DEBUG [JARDeployer] Creating jboss.system:service=JARDeployer
13:55:20,292 DEBUG [JARDeployer] Created jboss.system:service=JARDeployer
13:55:20,293 DEBUG [ServiceController] Creating dependent components for: jboss.system:service=JARDeployer dependents are: []
13:55:20,293 DEBUG [ServiceController] starting service jboss.system:service=JARDeployer
13:55:20,294 DEBUG [JARDeployer] Starting jboss.system:service=JARDeployer
13:55:20,295 DEBUG [MainDeployer] Adding deployer: org.jboss.deployment.JARDeployer@c39a20
13:55:20,295 DEBUG [JARDeployer] Started jboss.system:service=JARDeployer
13:55:20,296 DEBUG [ServiceController] Starting dependent components for: jboss.system:service=JARDeployer dependent components: []
13:55:20,366 DEBUG [Server] Created system XMBean: jboss.system:service=ServiceDeployer
13:55:20,367 DEBUG [ServiceController] Creating service jboss.system:service=ServiceDeployer
13:55:20,367 DEBUG [SARDeployer] Creating jboss.system:service=ServiceDeployer
13:55:20,463 DEBUG [SARDeployer] Created jboss.system:service=ServiceDeployer
13:55:20,464 DEBUG [ServiceController] Creating dependent components for: jboss.system:service=ServiceDeployer dependents are: []
13:55:20,464 DEBUG [ServiceController] starting service jboss.system:service=ServiceDeployer
13:55:20,465 DEBUG [SARDeployer] Starting jboss.system:service=ServiceDeployer
13:55:20,465 DEBUG [MainDeployer] Adding deployer: org.jboss.deployment.SARDeployer@161dfb5
13:55:20,526 DEBUG [SARDeployer] Started jboss.system:service=ServiceDeployer
13:55:20,526 DEBUG [ServiceController] Starting dependent components for: jboss.system:service=ServiceDeployer dependent components: []
13:55:20,526 INFO [Server] Core system initialized
13:55:20,580 DEBUG [MainDeployer] Starting deployment of package: file:/opt/jboss/jboss-4.0.2/server/all/conf/jboss-service.xml
13:55:20,581 DEBUG [MainDeployer] Starting deployment (init step) of package at: file:/opt/jboss/jboss-4.0.2/server/all/conf/jboss-service.xml
13:55:20,582 DEBUG [MainDeployer] Copying file:/opt/jboss/jboss-4.0.2/server/all/conf/jboss-service.xml -> /opt/jboss/jboss-4.0.2/server/all/tmp/deploy/tmp47270jboss-service.xml
13:55:20,596 DEBUG [MainDeployer] using deployer org.jboss.deployment.SARDeployer@161dfb5
13:55:20,667 DEBUG [SARDeployer] Found classpath element: [classpath: null]
13:55:20,670 DEBUG [SARDeployer] codebase URL is file:/opt/jboss/jboss-4.0.2/server/all/lib/
13:55:20,671 DEBUG [SARDeployer] listing codebase for archives matching *
13:55:20,677 DEBUG [SARDeployer] URLLister class is org.jboss.net.protocol.file.FileURLLister
13:55:20,731 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/activation.jar
13:55:20,731 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/autonumber-plugin.jar
13:55:20,732 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/avalon-framework.jar
13:55:20,732 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/bcel.jar
13:55:20,732 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/bindingservice-plugin.jar
13:55:20,732 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/bsh-1.3.0.jar
13:55:20,732 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/bsh-deployer.jar
13:55:20,732 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/commons-httpclient.jar
13:55:20,732 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/commons-logging.jar
13:55:20,732 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/hsqldb-plugin.jar
13:55:20,732 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/hsqldb.jar
13:55:20,733 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jacorb.jar
13:55:20,733 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/javax.servlet.jar
13:55:20,733 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/javax.servlet.jsp.jar
13:55:20,733 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-cache.jar
13:55:20,733 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-common-jdbc-wrapper.jar
13:55:20,733 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-iiop.jar
13:55:20,733 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-j2ee.jar
13:55:20,733 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-jaxrpc.jar
13:55:20,733 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-jca.jar
13:55:20,734 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-jsr77.jar
13:55:20,734 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-management.jar
13:55:20,734 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-monitoring.jar
13:55:20,734 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-remoting.jar
13:55:20,734 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-saaj.jar
13:55:20,734 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-transaction.jar
13:55:20,734 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss.jar
13:55:20,734 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jbossha.jar
13:55:20,734 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jbossmq.jar
13:55:20,735 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jbosssx.jar
13:55:20,735 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jgroups.jar
13:55:20,735 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jmx-adaptor-plugin.jar
13:55:20,735 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jnpserver.jar
13:55:20,735 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jpl-pattern.jar
13:55:20,735 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jpl-util.jar
13:55:20,735 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/license.html
13:55:20,735 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/log4j.jar
13:55:20,736 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/mail-plugin.jar
13:55:20,736 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/mail.jar
13:55:20,736 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/properties-plugin.jar
13:55:20,736 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/scheduler-plugin-example.jar
13:55:20,736 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/scheduler-plugin.jar
13:55:20,736 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/scout.jar
13:55:20,736 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/snmp-support.jar
13:55:20,736 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/webcallbackhandler.jar
13:55:20,736 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/ojdbc14_g.jar
13:55:20,737 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/ojdbc14.jar
13:55:20,737 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/jboss-xb.jar
13:55:20,737 DEBUG [SARDeployer] deployed classes for file:/opt/jboss/jboss-4.0.2/server/all/lib/classes12.zip
13:55:20,738 DEBUG [SARDeployer] about to copy 0 local directories


***************

let me know , where is the problem and wt is its remady.

Thanx and Regards
graham king
Ranch Hand

Joined: Dec 30, 2004
Posts: 133
your not the only one. i think it mostly happens in a development environment. if it's in production you might have issues.

see:
FAQ - 'Why do I' section
and
Tuning\Slimming


write, revise, re-write, revise, again...<br />write, revise, re-write, revise, again...
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165

http://wiki.jboss.org/wiki/Wiki.jsp?page=OutOfMemoryExceptionWhenCannotCreateThread


[My Blog] [JavaRanch Journal]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Why my JBOSS 4.0.2 is running out of memory?