Java Heap Size problem? Help?

Hello Everybody,
Now i'm facing very big problem.
I think, about 100 users access to our app, it is stopped.
My configuration below:
XMS_SUN_64BIT="16384"
export XMS_SUN_64BIT
XMS_SUN_32BIT="256"
export XMS_SUN_32BIT
XMX_SUN_64BIT="32768"
export XMX_SUN_64BIT
XMX_SUN_32BIT="512"
export XMX_SUN_32BIT
XMS_JROCKIT_64BIT="16384"
export XMS_JROCKIT_64BIT
XMS_JROCKIT_32BIT="256"
export XMS_JROCKIT_32BIT
XMX_JROCKIT_64BIT="32768"
export XMX_JROCKIT_64BIT
XMX_JROCKIT_32BIT="6144"
export XMX_JROCKIT_32BIT
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
     WLS_MEM_ARGS_64BIT="-Xms16384m -Xmx32768m -XX:NewSize=640m -XX:MaxNewSize=640m -XX:SurvivorRatio=16"
     export WLS_MEM_ARGS_64BIT
     WLS_MEM_ARGS_32BIT="-Xms16384m -Xmx32768m -XX:NewSize=640m -XX:MaxNewSize=640m -XX:SurvivorRatio=16"
     export WLS_MEM_ARGS_32BIT
else
     WLS_MEM_ARGS_64BIT="-Xms16384m -Xmx32768m -XX:NewSize=640m -XX:MaxNewSize=640m -XX:SurvivorRatio=16"
     export WLS_MEM_ARGS_64BIT
     WLS_MEM_ARGS_32BIT="-Xms16384m -Xmx32768m -XX:NewSize=640m -XX:MaxNewSize=640m -XX:SurvivorRatio=16"
     export WLS_MEM_ARGS_32BITI installed on linux 64bit, jrocket 64bit, 64GB ram only weblogic running.
How can i configure JVM?
Please help.
BR,
Eba

There are different examples given here: http://middlewaremagic.com/weblogic/?page_id=7132
In the setDomainEnv file you can use USER_MEM_ARGS to override the memory argument, for example,
if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
     JAVA_HOME="${BEA_JAVA_HOME}"
     export JAVA_HOME
else
     if [ "${JAVA_VENDOR}" = "Sun" ] ; then
          JAVA_HOME="${SUN_JAVA_HOME}"
          export JAVA_HOME
     else
          JAVA_VENDOR="Oracle"
          export JAVA_VENDOR
          JAVA_HOME="/home/weblogic/jrockit-jdk1.6.0_29-R28.2.2-4.1.0"
          export JAVA_HOME
     fi
fi
if [ "${SERVER_NAME}" = "" ] ; then
     SERVER_NAME="AdminServer"
     export SERVER_NAME
fi
if [ "${SERVER_NAME}" = "AdminServer" ] ; then
     # JMX configuration for JRockit
        JMX_OPTIONS="-Djava.rmi.server.hostname=192.168.1.150 -Xmanagement:ssl=false,authenticate=false,port=7091,autodiscovery=true"
        export JMX_OPTIONS
        # Memory arguments for JRockit
        USER_MEM_ARGS="-jrockit -Xms512m -Xmx512m -Xns128m -XXkeepAreaRatio:25 -Xgc:pausetime -XpauseTarget:200ms -XX:+UseCallProfiling -XX:+UseLargePagesForHeap ${JMX_OPTIONS}"
        export USER_MEM_ARGS
fiAbove an example is shown for JRockit. Xms and Xmx can be set accordingly (with a hundred users 4096m would probably be enough).

Similar Messages

  • Java heap size error Work manager

    Hi,
      We are working with Work Manager 6.0 running on SMP 2.3 SP03.
    The application was working fine, but after the data load that has happened in the UAT
    System, we are getting the below error:
    2014/08/08 00:48:56.142:
    setImportParameters::STORAGE_REF_KEY=ET_COMPLEX_TABLE
    2014/08/08 00:48:56.143:               + User=TS_MAINTMGR
    2014/08/08 00:48:56.143:                 execute::::TS_MAINTMGR::before
    BAPI execute: /SMERP/MM_CTMATPLANT_GET
    2014/08/08 00:55:20.905:             + BackEnd=Java-1
    2014/08/08 00:55:20.905:               Exception while updating complex
    table 'ctpart': JavaBackEndError: JAVA EXCEPTION CAUGHT:
    java.lang.OutOfMemoryError: Java heap space in
    AgentryJavaComplexTableIterator::hasNext at
    AgentryJavaComplexTableIterator.cpp:52
    2014/08/08 00:55:21.099: + Thread=6588
    2014/08/08 00:55:21.099:   + Thread Pool=Server
    2014/08/08 00:55:21.099:     + WorkFunction=00000000020DEF90
    2014/08/08 00:55:21.099:       + User=TS_MAINTMGR
    2014/08/08 00:55:21.099:         + User=TS_MAINTMGR
    2014/08/08 00:55:21.099:           Received Logout Request message 18
    status changed to 'In Progress'
    2014/08/08 00:55:21.105:         Logged out (but not yet cleaned up)
    We tried to increase the min and max heap size from 256 / 512 to 512 /
    2048 respectively in Agentry.ini, but are still getting the same error.
    Please let us know if there is any other parameter which can be used to
    fine tune this and get this up and running,
    Thanks for the help.

    Raviraj,
    Are you working with Boopaln?  The reason why I as He posted the same error (in the same complex table) With the same changes but just a different user shown.
    If yes. please see that thread at:  JAVA Heap Size Error in SAP Work Manager

  • How to increase the Java Heap size ?

    Hi
    I am new to java. I have created a java application and i configured in Eclipse. While running my application it throws an error that
    "Exception in thread "Thread-21" java.lang.OutOfMemoryError: Java heap space"
    i have used threads in my application. Then i searched some forums regarding this. The answer i got is "Increase the java heap size" using
    "java -Xms64m -Xmx256m prog" in command prompt. while running.
    But i am not running my application in command prompt. I used Eclipse to run my application. Here my ultimate question is how to set the heap size while running the application in Eclipse and where to set in Eclipse.
    Kindly help me.
    Regards
    Ramesh E

    i have used 20 threads to extract the datas
    Then parallel i am starting one more thread to process the data. Means that i am starting 21st thread. In thread is throwing the error.
    20 threads:
    for (int i = 0; i < 20; i++) {
    try{
    extrThreads[i] = new Thread(this);
    extrThreads.start();
    }catch (Exception e) {
    System.out.println(e);
    21st Thread:
    public void processdata()throws Exception{
    Thread t = new Thread(this);
    t.start();
    if(t!= null)
    t.join();
    funtion();
    This thread is throwing the error

  • Extending java heap size

    hi,
    In message mapping  iam importing the ED for target field at that time it tells java heap size is extended. so using repository.jnlp
    i extended the memory.
    But still i can't upload the ED.
    could u plz suggest wht to do in that..
    it is urgent plz do needful...
    regards
    sasi

    Hi Sk
    follow these link to understand java heaap and its solution for extending size
    Java heap: Java objects belonging to a VM are stored on the Java heap. Each VM has its own Java heap, and other VMs cannot access them.
    Memory Management in the VM Container
    http://help.sap.com/saphelp_nw04s/helpdata/en/3b/88d863ff72456aa61e993831a76614/frameset.htm
    Note 667841 - J2EE Engine 6.20 on AIX: how to increase the heap size
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=667841
    Note 667711 - Max. JVM Heap Size for AIX JDK 1.3.1
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=667711
    Regards
    sandeep
    if helpful reward points

  • Java.lang.OutOfMemoryError:class Your Java heap size might be set too high.

    I am getting the below error while deploying some soa applications in WLS 10.3 on solaris platform.As a workaround,
    the server instance has to be restarted everytime i make the deployments when i face this OOM situations.
    usually i face this issue after first deployment onwards.
    So, everytime i make the next deployment the server instance has to be restarted before that.
    The server is configured with 1Gb JVM and runs on JRockit jrrt-4.0.0-1.6.0.
    MEM_ARGS="-Xms1g -Xmx1g -Xgcprio:throughput -Xverbose:gc -XX:+HeapDumpOnOutO
    fMemoryError -XXcompressedRefs:enable=true"
    Can anybody please provide any pointers to track/solve this issue?
    Log extract:
    ####<Oct 10, 2010 4:27:31 PM PST> <Error> <Deployer> <BOX1> <SERVER2> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <1256893524756> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1256893524756' for task '3'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1373)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:118)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:205)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:820)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1223)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:436)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:164)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    java.lang.OutOfMemoryError: class allocation, 21977184 loaded, 20M footprint in check_alloc (classalloc.c:213) 1412 bytes requested.
    Java heap 1G reserved, 1G committed
    Paged memory=18014398507524232K/16781304K.
    Your Java heap size might be set too high.
    Try to reduce the Java heap
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:335)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:288)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    at java.lang.Class.getConstructor0(Class.java:2699)
    at java.lang.Class.newInstance0(Class.java:326)
    at java.lang.Class.newInstance(Class.java:308)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1058)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1129)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:542)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:435)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:465)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:175)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1784)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2999)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1371)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:820)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1227)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:436)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Its running on Solaris 10 platform.The server is configured with 1Gb JVM and JRockit jrrt-4.0.0-1.6.0.
    MEM_ARGS="-Xms1g -Xmx1g -Xgcprio:throughput -Xverbose:gc -XX:+HeapDumpOnOutO
    fMemoryError -XXcompressedRefs:enable=true"
    Let me know if you need any more information to track this issue.

  • Java heap space problem in SUN identity management

    Hi All,
    i am new to sun idm, i have installed netbeans 6.0.1 with tomcat 6.0.14 and then i have installed sun idm inside the web container(webapps/idm). When i stared my webserver manually using startup.batch file then I can easily go to inside administrator interface and i can create users in idm. but when i try to create a project in netbeans and then I try to RUN the project through netbeans .. then Admin interface will automatically opened but I try to create a user i am getting the following error.
    com.waveset.util.WavesetException: Can't call method getObjectNames on class com.waveset.ui.FormUtil
    ==> java.lang.OutOfMemoryError: Java heap space
    Please help me in this ...
    my server log as follows
    Using CATALINA_BASE: C:\Documents and Settings\Nirmalkumar.Dhanaraj.R5-CORE\.netbeans\6.0\apache-tomcat-6.0.14_base
    Using CATALINA_HOME: C:\Apache Software Foundation\Apache Tomcat 6.0.14
    Using CATALINA_TMPDIR: C:\Documents and Settings\Nirmalkumar.Dhanaraj.R5-CORE\.netbeans\6.0\apache-tomcat-6.0.14_base\temp
    Using JRE_HOME: C:\Program Files\Java\jdk1.5.0_18
    Aug 19, 2009 2:51:53 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_18\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Java\jdk1.5.0_18\bin;C:\Program Files\Java\jre1.5.0_18\bin;
    Aug 19, 2009 2:51:53 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Aug 19, 2009 2:51:53 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 371 ms
    Aug 19, 2009 2:51:53 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Aug 19, 2009 2:51:53 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
    Aug 19, 2009 2:51:53 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(D:\sunIDM\IDM8.0\Idm\image\idm\WEB-INF\lib\j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Constructing Startup Servlet...
    Initializing Startup Servlet...
    Defining system properties...
    StartupServlet: programmatically derived waveset.home=file:D:\sunIDM\IDM8.0\Idm\image\idm\
    StartupServlet: Defining properties from web.xml
    Starting: Identity Server...
    Starting internal database server ...
    DB Server @ jdbc:hsqldb:hsql://127.0.0.1:54210/idm
    ...Finished starting Startup Servlet
    Aug 19, 2009 2:52:07 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Aug 19, 2009 2:52:07 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Aug 19, 2009 2:52:07 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/16 config=null
    Aug 19, 2009 2:52:07 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 13773 ms
    Shutting down Startup Servlet...
    Stopping: Identity Server...
    Stopping internal database server ...
    ...Finished shutting down Startup Servlet in 1499 ms
    Aug 19, 2009 2:52:09 PM org.apache.catalina.startup.HostConfig checkResources
    INFO: Undeploying context [Idm]
    Aug 19, 2009 2:52:09 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(D:\sunIDM\IDM8.0\Idm\image\idm\WEB-INF\lib\j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    Constructing Startup Servlet...
    Initializing Startup Servlet...
    Defining system properties...
    StartupServlet: programmatically derived waveset.home=file:D:\sunIDM\IDM8.0\Idm\image\idm\
    StartupServlet: Defining properties from web.xml
    Starting: Identity Server...
    Exception in thread "HSQLDB Timer @8ddc4c" java.lang.NullPointerException
    at org.hsqldb.lib.HsqlTimer.nextTask(Unknown Source)
    at org.hsqldb.lib.HsqlTimer$TaskRunner.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:595)
    Starting internal database server ...
    DB Server @ jdbc:hsqldb:hsql://127.0.0.1:54210/idm
    ...Finished starting Startup Servlet
    Aug 19, 2009 2:52:21 PM org.apache.catalina.core.StandardContext start
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[Idm] has already been started
    XPRESS <invoke> exception:
    com.waveset.util.WavesetException: Can't call method getObjectNames on class com.waveset.ui.FormUtil
    ==> java.lang.OutOfMemoryError: Java heap space

    Hi, there might be some information here that is useful: http://blogs.adobe.com/livecycle/2008/11/livecycle_es_update_1_turnkey.html

  • How to increase Memory and Java Heap Size for Content Server

    Hi,
    My content server is processing requests very slowly. Over performance is not good. I have 2 GB of RAM any idea what files I can modify to increase the Java Heap Size for the Content Server. If I increase the RAM to 4 or 6 GB where do I need to make changes for the Java Heap Size and what are the recommended values. I just have Content Server Running on the linux box. Or how do I assign more memory to the user that owns the content server install.
    Thanks

    You might find these interesting:
    http://blogs.oracle.com/fusionecm/2008/10/how_to_-javatuning.html
    http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/admin/performance_tuning_10en.pdf
    Do you have access to metalink? This has about everything you could want:
    https://metalink2.oracle.com/metalink/plsql/f?p=130:14:9940589543422282072::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,788210.1,1,1,1,helvetica
    Or search for "788210.1" in metalink knowledgebase if that link doesn't work and look for the FAQ on configuring Java for Content Servers

  • JAVA Heap Size Error in SAP Work Manager

    We are getting the below error wrt Java Heap size in the SAP Work manager Application:
    2014/08/08 00:48:56.142:setImportParameters::STORAGE_REF_KEY=ET_COMPLEX_TABLE
    2014/08/08 00:48:56.143: + User=MAINTMGR
    2014/08/08 00:48:56.143: execute::::MAINTMGR::before BAPI execute: /SMERP/MM_CTMATPLANT_GET
    2014/08/08 00:55:20.905: + BackEnd=Java-1
    2014/08/08 00:55:20.905: Exception while updating complex table 'ctpart': JavaBackEndError: JAVA EXCEPTION CAUGHT: java.lang.OutOfMemoryError: Java heap space in AgentryJavaComplexTableIterator::hasNext at AgentryJavaComplexTableIterator.cpp:52
    2014/08/08 00:55:21.099: + Thread=6588
    2014/08/08 00:55:21.099: + Thread Pool=Server
    2014/08/08 00:55:21.099: + WorkFunction=00000000020DEF90
    2014/08/08 00:55:21.099: + User=MAINTMGR
    2014/08/08 00:55:21.099: + User=MAINTMGR
    2014/08/08 00:55:21.099: Received Logout Request message 18 status changed to 'In Progress'
    2014/08/08 00:55:21.105: Logged out (but not yet cleaned up)
    We have tried to increase the initial and maximum heap size in the Agentry.ini file from 256 / 512 to 512 / 2048 respectively. But the
    error still persists.
    Can you please let us know if there are any
    other changes required for
    the same?
    PFA the Java backend and the user
    logs. Please treat this ticket with
    the highest priority.
    Thanks,
    Boopalan

    Looks like ur getting   heap size error while trying to fetch  records for ctparts complex table. From platform  point of view you have increased heap size. Next step is to analyze application settings for ctparts  complex table. As indicated by Steve from application point you need check the need for  amount of materials your trying to retrive , can you set filter for ctparts ,  does  ctparts  BAPI execute in SAP without any timeout error.
    What is the version of Work Manager your using ?    With WM 6.1 you have options to  take advantage of data staging that is delievered as part of standard application.
    Thanks
    Manju.

  • Java heap size settings - Cant find the path in Registry.

    Hello All,
    I am trying to check Java Heap size for my planning. I was asked to check the Java heap size setting in the below path
    HKEY_LOCAL_MACHINE/SOFTWARE/HYPERION SOLUTIONS/HYPERION PLANNING/HYPERION S9PLANNING/JVM OPTIONS.
    but when I checked, I dont see that options in my registry, I have the below mentioned path.
    HKEY_LOCAL_MACHINE/SOFTWARE/HYPERION SOLUTIONS/HYPERION PLANNING/OFFLINE
    and it doesnt show any jvm options.
    Please advice where can i check for Java heap sizes.
    Thanks,

    It can depend on version, an example is - http://docs.oracle.com/cd/E17236_01/epm.1112/epm_install_11121/ch07s01s01.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How do we monitor Java heap size

    How do we monitor Java heap size? Is there any way to check whether we are exceeding the heap size or not?
    Regards,
    N.S

    Hi,
    > How do we monitor Java heap size? Is there any way to
    > check whether we are exceeding the heap size or not?
    >
    You should run your JAVA AS with the recommended settings described in the note
    "Java VM settings for J2EE 6.30/6.40/7.0"
    SAP Note Number: 723909.
    If you do so, you can find the garbage collector log messages in your dev_server* or your std_server*.out file.
    You can also use the option -Xloggc:<file> to log to a seperate file.
    You can visualize the GC log file with a tool like GCViewer.
    See
    http://www.javaperformancetuning.com/tools/gcviewer/index.shtml
    for an overview of this tool.
    Regards,
    Markus

  • 8.2 EPPM Application Server Java Heap Size

    Hello I am reading the sizing guide is there a way to calculate the Java Heap Size required? The guide suggest 8GB was wondering if anyone has any experience and how much java heap size are you using?

    JVM configuration is largely based on the load on the server. You can start with as little as 2GB and based on the load, you can increase it. Other factors that you need to consider is the number of CPU, RAM, Swap space etc.
    Sachin Gupta

  • Invalid initial heap size Problem with sdk1.4.2_03

    Hi,
    ich habe a troubling error with the java version 1.4.2_03.
    I use an Ant Task to start a Weblogic Server (J2EE Server). For this, I use the following Ant code :
    -----ANT CODE------------------------------------------------------------------------------------------------------------------------
    <java classname="weblogic.Server" fork="true" failonerror="true" dir="${weblogic.domain.dir}">
    <sysproperty key="bea.home" value="${bea.home.dir}"/>
    <sysproperty key="weblogic.Name" value="${weblogic.admin.server.name}"/>
    <sysproperty key="weblogic.management.username" value="${weblogic.user.name}"/>
    <sysproperty key="weblogic.management.password" value="${weblogic.user.password}"/>
    <sysproperty key="weblogic.ProductionModeEnabled" value="false"/>
    <sysproperty key="java.security.policy" value="${weblogic.home.dir}\server\lib\weblogic.policy"/>
    <sysproperty key="weblogic.security.SSL.trustedCAKeyStore" value="${weblogic.home.dir}\server\lib\cacerts"/>
         <jvmarg value="-Xms32m -Xmx200m"/>
    <classpath>
    <pathelement path="${windows.classpath.wls}"/>
    </classpath>
    </java>
    -----/ANT CODE------------------------------------------------------------------------------------------------------------------------
    This Task perfectly works with the sdk java version 1.4.1_05, but I have the following message with the sdk java version 1.4.2_03 :
    -----ERROR MESSAGE---------------------------------------------------
    Invalid initial heap size: -Xms32m -Xmx200m
    Could not create the Java virtual machine.
    -----/ERROR MESSAGE---------------------------------------------------
    The following parameter is anymore correct : <jvmarg value="-Xms32m -Xmx200m"/>
    I have tried with a lot of possibilty, 64-200, 128-200, 128-128, 256-256, 512-512, nothing works.
    I have tried without this parameter, this works fine.
    I have tried with the weblogic server without the Ant Task, and this works fine too.
    I think this is a bug in the JVM 1.4.2_03.
    What do you think about this problem ??? Do you have some solution ???
    I have also tried with another version of ant, I have the same problem. This works with JVM 1.4.1_05 and not with JVM 1.4.2_03.
    If you have an idea, please, help.
    Thanks

    If you can start a 1.4.2 JVM with all these parameters independently (i.e. not from Ant) and it works, but from Ant it doesn't work, it's more likely that the problem is somehow related to interaction between Ant and the JVM, rather than the JVM itself. So I would suggest trying some Ant forum first - I think it would also work faster than if you try to submit this bug to Sun.

  • How to Increase Java Heap Size through Java Code. Increase inside Code?

    Hi All,
    I am using a third party tool. When i run a particular program it says OutOfMemory error. I like to increase heap size through Java Code before calling the particular Java application or Code..
    Is there is any way to set the Heap Size through Java Code in run time ???
    Pls Kindly help.
    Thanks.

    if you start the program with a -Xmx512m flag, the virtual machine gets half a gigabyte of memory to use (or that's the max it's allowed to use). All things run in the same virtual machine will have the same limit, third party tools run in the same virtual machine can't "not care about this" unless they're throwing OOMs themselves for some stupid reason.

  • Java Heap Sizes  -Xms  -Xmx

    Gurus,
    Could some body help me to understand the differentiate between heap size parameters -Xms and -Xmx ? I usually change both of them. One another is that, the maximum heap size we can use is total ram/2 ?
    Thanks,

    Text from the above link
    ==================
    As part of the Best Practices, we know that we should be setting -Xms & -Xmx Java command line parameters. What are these settings and why is it required to set these.
    As JAVA starts, it creates within the systems memory a Java Virtual Machine (JVM). JVM is where the complete processing of any Java program takes place. All JAVA applications (including IQv6) by default allocates & reserves up to 64 MB of memory resource pool from the system on which it is running.
    The Xms is the initial / minimum Java memory (heap) size within the JVM. Setting the initial memory (heap) size higher can help in a couple of ways. First, it will allow garbage collection (GC) to work less which is more efficient. The higher initial memory value will cause the size of the memory (heap) not to have to grow as fast as a lower initial memory (heap) size, thereby saving the overhead of the Java VM asking the OS for more memory.
    The Xmx is the maximum Java memory (heap) size within the Java Virtual Memory (JVM). As the JVM gets closer to fully utilizing the initial memory, it checks the Xmx settings to find out if it can draw more memory from the system resources. If can, it does so. For the JVM to allocate contiguous memory to itself is a very expensive operation. So as the JVM gets closer to the initial memory, the JVM will use aggressive garbage collection (to clean the memory and if possible avoid memory allocation), increasing the load on the system.
    If JVM is in need of memory beyond the value set in Xmx, the JVM will not be able to draw more memory from system resource (even if available) and run out of memory. Hence, the -Xms and -Xmx memory parameters should be increased depending upon the demand estimation of the system. Ideally both same should be the same value (set at maximum possible as per demand estimation). This ensure that the maximum memory is allocated right at the start-up eliminating the need for extra memory allocation during program execution. We recommend aggressive maximum memory (heap) size of between 1/2 and 3/4 of physical memory.
    Edited by: oracleSQR on Oct 7, 2009 10:38 AM

  • Java heap size....

    Hi guys,
    i need absolutely your help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    I use Exadel Studio with Eclipse and Server Tomcat 5.0 embedded.
    I need to enlarge Tomcat heap size.
    Can you help me?
    I've read many posts but i'm a bit confused. Does exists a graphical tool that allow me to operate on Tomcat Server?
    Can i install it with my configuration?
    When i've modified configuration how can i see if it has gone well?
    Does exists a command that say me what's the current available heap size?
    Thanks very much....

    thanks...
    excuse my inexperience,i don't understand if i have to enlarge jvm heap size or Tomcat heap size?
    Are they the same?
    Thanks,i'm waiting for your reply...

Maybe you are looking for

  • IPod Classic corrupt

    Hi, certain songs were not playing right on my 2009 iPod Classic, so I tried to do a restore on the iPod today, and re-sync all my music in iTunes to it. In the process of syncing all my music, the sync stalled, and now the device is not recognized i

  • CJI3 Report - Balance in Controlling Area currency after settlement

    Hi Friends, When I run CJI3 report for one of my projects, the system displays the actual costs in Controlling Area Currency and Object Currency. Controlling Area currency is USD and Object Currency is EUR. After settlement, for one of the cost eleme

  • Replacing my iMac 1TB Seagate Hard Drive

    I have to replace my iMac 1TB Seagate Hard Drive. I need to use Time Machine to restore my Mac- anyone have a step by step procedure to complete this?

  • Documentation about variable types & their processing in i_step = 1, 2 etc.

    Hello experts, is there any documentation about variable types and their processing in i_step = 1, 2 etc.? I know there is note 492504 "Dependent customer exit-type variables", but I don't understand, whether a variable which is NOT "Ready for input"

  • Lightroom 5.2 Update in French

    I just downloaded 5.2 here in UK and when I start the installation, the important information section and the terms and conditions are in French. I halted the update as I didn't want Lightroom to be updated and find it all in French! Anyone else had