2 Replies Latest reply on Feb 22, 2009 9:47 AM by Sherif Ramadan elShereif

    Increase jboss Memory

    Sherif Ramadan elShereif Newbie

      Hello
      I have jboss 4.0.2 running on sun sparc 64bit version, the current max memory size i can set to jboss jvm is 3 GB i need to enlarge this memory to be able to handle more threads so i found that i need to pass the arch. which is 64bit to the jboss and when i do his it halts ,
      so i need to enlarge the memory size to be more than 3GB what i have to do ??
      Thanks
      Sherif

        • 1. Re: Increase jboss Memory
          Peter Johnson Master

          Are you sure you are running a 64-bit JVM? (Sorry if this question is naive, but I don;t had a Sparc system...) Try running "$JAVA_HOME/bin/java -version" and see what it says.

          When you say "it halts", what do you mean? JBoss AS goes through its shutdown process? JDK crashes? If the JDK crashes, you need to tell Sun - it's their JDK. But first, make sure you are running the most recent JDK.

          • 2. Re: Increase jboss Memory
            Sherif Ramadan elShereif Newbie

            It prints that its uses 64 bit jvm but,
            It output the following

            JBoss Bootstrap Environment

            JBOSS_HOME: /JBOSS/iboss/jboss-4.0.2RC1

            JAVA: java

            JAVA_OPTS: -d64 -Xmn1024m -Xms3072m -Xmx3072m -XX:ThreadStackSize=128
            -XX:+UseParallelGC -XX:ParallelGCThreads=8 -verbose:gc -Xloggc:/gclog.txt -XX:+PrintGCDetails -Dcom.sun.management.jmxremote.port=50050 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dprogram.name=run.sh

            CLASSPATH: /JBOSS/iboss/jboss-4.0.2RC1/bin/run.jar:/lib/tools.jar

            =========================================================================

            17:13:47,049 INFO [Server] Starting JBoss (MX MicroKernel)...
            17:13:47,054 INFO [Server] Release ID: JBoss [Zion] 4.0.2RC1 (build: CVSTag=JBoss_4_0_2_RC1 date=200503140913)
            17:13:47,055 INFO [Server] Home Dir: /JBOSS/iboss/jboss-4.0.2RC1
            17:13:47,056 INFO [Server] Home URL: file:/JBOSS/iboss/jboss-4.0.2RC1/
            17:13:47,057 INFO [Server] Library URL: file:/JBOSS/iboss/jboss-4.0.2RC1/lib/
            17:13:47,061 INFO [Server] Patch URL: null
            17:13:47,062 INFO [Server] Server Name: default
            17:13:47,062 INFO [Server] Server Home Dir: /JBOSS/iboss/jboss-4.0.2RC1/server/default
            17:13:47,064 INFO [Server] Server Home URL: file:/JBOSS/iboss/jboss-4.0.2RC1/server/default/
            17:13:47,065 INFO [Server] Server Data Dir: /JBOSS/iboss/jboss-4.0.2RC1/server/default/data
            17:13:47,065 INFO [Server] Server Temp Dir: /JBOSS/iboss/jboss-4.0.2RC1/server/default/tmp
            17:13:47,066 INFO [Server] Server Config URL: file:/JBOSS/iboss/jboss-4.0.2RC1/server/default/conf/
            17:13:47,067 INFO [Server] Server Library URL: file:/JBOSS/iboss/jboss-4.0.2RC1/server/default/lib/
            17:13:47,068 INFO [Server] Root Deployment Filename: jboss-service.xml
            17:13:47,080 INFO [Server] Starting General Purpose Architecture (GPA)...
            psrset: cannot bind pid 7221: Invalid argument
            psrset: invalid process ID: 6521
            root@DR-IBOSS-ES00-WF00 # 17:13:48,443 INFO [ServerInfo] Java version: 1.5.0_12,Sun Microsystems Inc.
            17:13:48,444 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_12-b04,Sun Microsystems Inc.
            17:13:48,445 INFO [ServerInfo] OS-System: SunOS 5.10,sparcv9
            17:13:50,046 INFO [Server] Core system initialized
            17:13:53,792 ERROR [MainDeployer] could not create deployment: file:/JBOSS/iboss/jboss-4.0.2RC1/server/default/conf/jboss-service.xml
            org.jboss.deployment.DeploymentException: Unexpected error during load of: org.jboss.management.j2ee.LocalJBossServerDomain, msg=org/jboss/management/j2ee/LocalJBossServerDomainMBean; - nested throwable: (java.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.management.j2ee.LocalJBossServerDomain, msg=org/jboss/management/j2ee/LocalJBossServerDomainMBean)
            at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:143)
            at org.jboss.system.ServiceController.install(ServiceController.java:200)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy4.install(Unknown Source)
            at org.jboss.deployment.SARDeployer.create(SARDeployer.java:220)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
            at org.jboss.Main.boot(Main.java:195)
            at org.jboss.Main$1.run(Main.java:463)
            at java.lang.Thread.run(Thread.java:595)