JDeveloper 10.1.3.3.0 Java Memory errors

Hello,
I have been developing an ADF Application that contains a tree component that is used for navigation of a BOM structure. The BOM is not that large only 600 or so records and when I am testing for short intervals I have no problems. When the application is run for extended periods 15-20mins in both the embeded oc4j container and the Application server 10.1.3.4.0, it runs out of memory and in the case of the application server the instance is restarted.
I have tried to limit records retrieved, increase heap memory to ridiculous sizes (1024MB), configure the AM pooling settings and still this occurs. I guess I have memory leak or something but I tried to use JDeveloper debug functions to isolate and cannot find. Does anyone know how I can make the app release memory and stop restarting the application server? Any tips on how to find memory leaks?
Any help is greatly appreciated.
Thanks in advance,
Peter

This issue had to do with a known bug in the Java Hotspot sever and updating the version of Java to 1.5.0_17-b04 resolved this issue.

Similar Messages

  • Java Memory error for applprod

    Hi,
    I have strange problem. I am running "Create accounting" program and it errors out with the error message
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    I have sun SPARC servers, with 16GB RAM, 38 GB SWAP WITH 12.1.1 and 11.1.0.7
    So following the note
    Troubleshooting Java[tm]: Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. [ID 1260764.1]
    The funny thing is
    when i run the command java -Xmx2048M -version it works fine on root and oraprod. But when i run in applprod it throws the same error
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    I have checked ulimit settings, they are fine
    1) ROOT:
    root@server1 # ulimit -a
    core file size (blocks, -c) unlimited
    data seg size (kbytes, -d) unlimited
    file size (blocks, -f) unlimited
    open files (-n) 256
    pipe size (512 bytes, -p) 10
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 29995
    virtual memory (kbytes, -v) unlimited
    2). ORAPROD:
    bash-3.00$ ulimit -a
    core file size (blocks, -c) unlimited
    data seg size (kbytes, -d) unlimited
    file size (blocks, -f) unlimited
    open files (-n) 256
    pipe size (512 bytes, -p) 10
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 29995
    virtual memory (kbytes, -v) unlimited
    3). APPLPROD
    core file size (blocks, -c) unlimited
    data seg size (kbytes, -d) unlimited
    file size (blocks, -f) unlimited
    open files (-n) 65536
    pipe size (512 bytes, -p) 10
    stack size (kbytes, -s) unlimited
    cpu time (seconds, -t) unlimited
    max user processes (-u) 29995
    virtual memory (kbytes, -v) unlimited
    When i run java the following is the output.
    1). ROOT
    root@server1 # java -Xmx2048M -version
    java version "1.5.0_20"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_20-b02)
    Java HotSpot(TM) Server VM (build 1.5.0_20-b02, mixed mode)
    2).ORAPROD
    bash-3.00$ java -Xmx2048M -version
    java version "1.6.0_05"
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
    Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)
    3).APPLPROD
    bash-3.00$ id
    uid=101(applprod) gid=100(dba)
    bash-3.00$ java -Xmx2048M -version
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    If i run java with 1024M it works fine as follows
    bash-3.00$ java -Xmx1024M -version
    java version "1.5.0_20"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_20-b02)
    Java HotSpot(TM) Server VM (build 1.5.0_20-b02, mixed mode)
    bash-3.00$ id
    uid=101(applprod) gid=100(dba)
    bash-3.00$
    Please any help.
    Thanks

    Hi Hussein,
    I created another user test1 of group dba and ran java -Xmx2048M -version. It worked with out error.
    Then i found the only difference between test1 and applprod is ulimit -s set to unlimited in applprod but not set in test1
    I removed ulimit -s unlimited for applprod the executed
    java -Xmx2048M -version
    it worked fine.
    But i guess ulimit -s unlimited is a pre-requisite for running R12 in solaris??
    What shoud i do
    Please suggest.
    What does "echo $ADJRIOPTS" return after sourcing the env file?bash-3.00$ echo $ADJRIOPTS
    -mx512m
    bash-3.00$
    Thanks

  • Java memory error

    Upon starting weblogic get error: AIX RS/6000 5.o WebLogic 6.1 sp2 -
    Unable to initialize the server:'Fatal initialization exception Throwable: java.lang.OutOfMemoryError: ZIP004:OutOfMemoryError, MEM_ERROR in inflateInit2

    Jose Quidachay <[email protected]> wrote:
    java.lang.OutOfMemoryError: ZIP004:OutOfMemoryError, MEM_ERROR in inflateInit2This looks like zip deflating occurs (probably a jar file of some sort), then
    the heap is exhausted during execution, and the JVM reports java.lang.OutOfMemory.
    What are your JVM options? For example, -Xms and -Xmx. I believe under IBM's
    1.3.1 JVM on AIX, you're limited to a maximum possible Java heap size of 2.5 GB
    (that's after also setting maxdata to 0x00000000 to free up all 10 consecutive
    segments (0x3 -0xC) for mmap( ), per IBM documentation here:
    http://www-106.ibm.com/developerworks/eserver/articles/JavaPart2.html
    Also, review your swap space on your filesystem (increase if necessary). Hope
    this helps!
    Brian J. Mitchell
    Systems Administrator, TRX
    PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BEE2240
    Fingerprint: 3A84 A5D6 EE26 BC10 E525 1905 6FF0 0B6F 8BEE 2240

  • Safari 5.0.5 crashes - Java Memory Error

    Last login: Sat Jul 30 09:36:48 on console
    java version "1.6.0_26"
    Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
    Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)
    So I am running the latest update for Java, the latest update to the OS 10.6.8
    I go to creativelive.com/live and then "show chat" at the bottom, then then click login and BOOM crash smash. Won't run.
    Fix??

    /Users/jess/Library/Internet Plug-Ins/EvernoteSafariClipperPlugin.webplugin/Contents/MacOS/EvernoteSafariCli pperPlugin
          Go to ~/Library/Internet Plug-Ins. Move these files to the Desktop:
    EvernoteSafariClipperPlugin.webplugin/Contents/MacOS/EvernoteSafariCli pperPlugin
    Relaunch Safari. If it doesn't crash, then check the Evernote site for support.
    http://www.evernote.com/about/download/web_clipper.php
    Note* The ~ (Tilde) character represents your Home folder.

  • Error running JDeveloper 11G on a ppc 64 - Low Memory Detector Disabled

    Hi, the first error I get when open JDeveloper on ppc 64 it's:
    Aug 8, 2008 5:30:27 PM oracle.jdevimpl.webapp.util.LowMemoryDetector initialize
    INFO: Low Memory Detector Disabled : PermGenMemoryPoolMXBean could not be found.
    java.lang.IllegalStateException
    at oracle.javatools.xml.bind.UtilImpl.invoke(UtilImpl.java:31)
    at oracle.javatools.xml.bind.ElementProxy.invoke(ElementProxy.java:35)
    at $Proxy10.getRmiConfig(Unknown Source)
    at oracle.jdeveloper.xml.oc4j.Oc4jConfigAdmin.getRmiServerURL(Oc4jConfigAdmin.java:995)
    at oracle.jdeveloper.xml.oc4j.Oc4jConfigAdmin.getRmiServer(Oc4jConfigAdmin.java:1018)
    at oracle.jdeveloper.xml.oc4j.Oc4jConfigAdmin.getRmiPort(Oc4jConfigAdmin.java:1031)
    at oracle.jbo.dt.jdevx.JdvOc4jConfigAdmin.getRmiPort(JdvOc4jConfigAdmin.java:83)
    at oracle.jbo.dt.objects.JboConfigFile$1.getDefaultFromEmbeddedOC4J(JboConfigFile.java:131)
    at oracle.jbo.dt.objects.JboConfigFile$1.getDefault(JboConfigFile.java:113)
    at oracle.jbo.common.PropertyMetadata.getDefault(PropertyMetadata.java:351)
    at oracle.jbo.common.PropertyManager.loadProperty(PropertyManager.java:552)
    at oracle.jbo.common.PropertyManager.loadProperties(PropertyManager.java:279)
    at oracle.jbo.dt.objects.JboApplication.<clinit>(JboApplication.java:132)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
    at oracle.adfdtinternal.model.ide.addins.AdfDtAddin.addinsLoaded(AdfDtAddin.java:583)
    at oracle.ide.IdeCore.fireIdeEvent(IdeCore.java:833)
    at oracle.ide.IdeCore.mav$fireIdeEvent(IdeCore.java:125)
    at oracle.ide.IdeCore$3.run(IdeCore.java:803)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:240)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:543)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:268)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:197)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:191)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:144)
    Caused by: java.lang.NoSuchMethodException: oracle.jdeveloper.xml.oc4j.server.ApplicationServerUtil.getRmiConfig(oracle.jdeveloper.xml.oc4j.server.ApplicationServer)
    at java.lang.Throwable.<init>(Throwable.java:57)
    at java.lang.Throwable.<init>(Throwable.java:68)
    at java.lang.Class.throwNoSuchMethodException(Class.java:275)
    at java.lang.Class.getDeclaredMethod(Class.java:570)
    at oracle.javatools.xml.bind.UtilImpl.findUtilMethod(UtilImpl.java:47)
    at oracle.javatools.xml.bind.UtilImpl.callUtilMethod(UtilImpl.java:67)
    at oracle.javatools.xml.bind.UtilImpl.invoke(UtilImpl.java:23)
    ... 25 more
    and when I try to run a web app gets:
    IllegalStateException in every single jsf page that i have
    also, when i open a jsf page to view the source code I get tne next error:
    Error acquiring text buffer - Cannot load jsp

    this is the error when i try to open a jsf page tov iew the source code:
    java.io.IOException: exception loading /home/oracle/SIEStats/SIEStats_home/SIEStatsNuma/ViewController/public_html/ReporteEstadisticas.jsp
         at oracle.ide.model.TextNode.openImpl(TextNode.java:540)
         at oracle.ide.model.Node.open(Node.java:966)
         at oracle.ide.model.Node.open(Node.java:918)
         at oracle.ide.model.Node.ensureOpen(Node.java:1716)
         at oracle.ide.model.TextNode.acquireTextBuffer(TextNode.java:743)
         at oracle.bali.xml.addin.XMLSourceNode._getXmlContext(XMLSourceNode.java:1227)
         at oracle.bali.xml.addin.XMLSourceNode.getXmlContext(XMLSourceNode.java:172)
         at oracle.bali.xml.gui.jdev.JDevXmlContext.getXmlContext(JDevXmlContext.java:225)
         at oracle.bali.xml.gui.jdev.AbstractXmlVisualEditor.setContext(AbstractXmlVisualEditor.java:244)
         at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.setContext(AbstractWebAppEditor.java:230)
         at oracle.jdevimpl.webapp.editor.jsp.JspEditor.setContext(JspEditor.java:159)
         at oracle.ideimpl.editor.EditorState.createEditor(EditorState.java:147)
         at oracle.ideimpl.editor.EditorState.getOrCreateEditor(EditorState.java:94)
         at oracle.ideimpl.editor.SplitPaneState.canSetEditorStatePos(SplitPaneState.java:231)
         at oracle.ideimpl.editor.SplitPaneState.setCurrentEditorStatePos(SplitPaneState.java:194)
         at oracle.ideimpl.editor.TabGroupState.createSplitPaneState(TabGroupState.java:103)
         at oracle.ideimpl.editor.TabGroup.addTabGroupState(TabGroup.java:355)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1399)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1333)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditor(EditorManagerImpl.java:1259)
         at oracle.ideimpl.navigator.OpenEditorController.whenOpenEditor(OpenEditorController.java:41)
         at oracle.ideimpl.navigator.OpenEditorContextMenuListener.handleDefaultAction(OpenEditorContextMenuListener.java:51)
         at oracle.ide.controller.ContextMenuListenersHook$LazyContextMenuListener.handleDefaultAction(ContextMenuListenersHook.java:212)
         at oracle.ide.controller.ContextMenu.fireDefaultAction(ContextMenu.java:415)
         at oracle.ideimpl.explorer.BaseTreeExplorer.fireDefaultAction(BaseTreeExplorer.java:1793)
         at oracle.ideimpl.explorer.BaseTreeExplorer.dblClicked(BaseTreeExplorer.java:2128)
         at oracle.ideimpl.explorer.BaseTreeExplorer.mouseReleased(BaseTreeExplorer.java:2149)
         at oracle.ideimpl.explorer.CustomTree.processMouseEvent(CustomTree.java:198)
         at java.awt.Component.processEvent(Component.java:5312)
         at java.awt.Container.processEvent(Container.java:2001)
         at java.awt.Component.dispatchEventImpl(Component.java:4014)
         at java.awt.Container.dispatchEventImpl(Container.java:2059)
         at java.awt.Component.dispatchEvent(Component.java:3847)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4249)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3929)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3859)
         at java.awt.Container.dispatchEventImpl(Container.java:2045)
         at java.awt.Window.dispatchEventImpl(Window.java:1812)
         at java.awt.Component.dispatchEvent(Component.java:3847)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:545)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:268)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:191)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:144)
    Caused by: java.lang.IllegalStateException
         at oracle.javatools.xml.bind.UtilImpl.invoke(UtilImpl.java:31)
         at oracle.javatools.xml.bind.ElementProxy.invoke(ElementProxy.java:35)
         at $Proxy42.getJspConfig(Unknown Source)
         at oracle.jdevimpl.webapp.util.WebAppNodeUtils.getServletMappings(WebAppNodeUtils.java:144)
         at oracle.jdevimpl.webapp.util.WebAppNodeUtils.getJspPropertyGroups(WebAppNodeUtils.java:233)
         at oracle.jdevimpl.webapp.util.WebAppNodeUtils.getJspPropertyGroup(WebAppNodeUtils.java:38)
         at oracle.jdevimpl.webapp.util.WebAppNodeUtils.getJspPropertyGroup(WebAppNodeUtils.java:33)
         at oracle.jdevimpl.webapp.jsp.JspUtils.getPropertyGroup(JspUtils.java:298)
         at oracle.jdevimpl.webapp.jsp.JspUtils.getPropertyGroup(JspUtils.java:280)
         at oracle.jdeveloper.model.JspSourceNode.getEncoding(JspSourceNode.java:118)
         at oracle.jdevimpl.webapp.html.HtmlSourceNode._getEncoding(HtmlSourceNode.java:596)
         at oracle.jdevimpl.webapp.html.HtmlSourceNode.createReader(HtmlSourceNode.java:490)
         at oracle.ide.model.TextNode.loadTextBuffer(TextNode.java:282)
         at oracle.ide.model.TextNode.openImpl(TextNode.java:528)
         ... 44 more
    Caused by: java.lang.NoSuchMethodException: oracle.jdeveloper.xml.j2ee.war.WebAppUtil.getJspConfig(oracle.jdeveloper.xml.j2ee.war.WebApp)
         at java.lang.Class.throwNoSuchMethodException(Class.java:274)
         at java.lang.Class.getDeclaredMethod(Class.java:600)
         at oracle.javatools.xml.bind.UtilImpl.findUtilMethod(UtilImpl.java:47)
         at oracle.javatools.xml.bind.UtilImpl.callUtilMethod(UtilImpl.java:67)
         at oracle.javatools.xml.bind.UtilImpl.invoke(UtilImpl.java:23)
         ... 57 more

  • Help with Java Memory Leak in URLConnection

    Hi everyone,
    I can't seem to find the memory leak in the below code, if anyone could help, i would greatly appreciate it. The jist of the code is: I open up a URLConnection to update a ColdFusion page that takes in URL parameters passed in my URL. Then, I get the response. I also check for proxy usage and take that into consideration when making the connection.
    I have one class to handle the Connections, Connect.java:
         * Connection using Username and Password, as well as boolean option to use Basic Proxy Authentication
         public Connect(String pHost, String pPort, String urlString,
                             String pUsername, String pPassword, boolean useProxy) {
              this.pHost = pHost;
              this.pPort = pPort;
              this.urlString = urlString;
              this.pUsername = pUsername;
              this.pPassword = pPassword;
              this.useProxy = useProxy;
         * Get the Input Stream from the Connection given a specific URL
         public java.io.InputStream getInputStream(String urlString) {
              if (urlString == null) urlString = this.urlString;
                 exDialog = new ExceptionDialog(new javax.swing.JFrame());
              try {
                   String auth = "";
                   if (useProxy) {
                        System.getProperties().put("proxySet", "true");
                        System.getProperties().put("proxyHost", pHost);
                        System.getProperties().put("proxyPort", pPort);
                        String authString = "";
                        if (pUsername != null && pUsername != "") authString = pUsername + ":";
                        else authString = "username:";
                        if (pPassword != null && pPassword != "") authString = authString + pPassword;
                        else authString = authString + "password";
                        auth = "Basic " + new sun.misc.BASE64Encoder().encode(authString.getBytes());
                   java.net.URL url = new java.net.URL(urlString);
                   java.net.HttpURLConnection conn = (java.net.HttpURLConnection)url.openConnection();
                   if (useProxy) conn.setRequestProperty("Proxy-Authorization", auth);
                   conn.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)");
                   conn.setDoInput( true );
                   conn.setDoOutput( true );
                   conn.connect();
                   return conn.getInputStream();
              } catch (java.io.IOException ioe) {
                   exDialog.showForThrowable(ioe.toString(),ioe);
                   return null;
         }I call the code in Download.java:
    Connect conn = new Connect(sm.pHost, sm.pPort, null, sm.pUser, sm.pPass, sm.useProxy);
    new BufferedReader(new InputStreamReader(conn.getInputStream(sUpdateURL)));
    in.close();For some reason, as I loop through this call, the memory footprint of my program grows through every iteration, eventually resulting in a Java Out of Memory error. I can't track the leak down and it's fairly frustrating. If anyone can help, that would be greatly appreciated. Thanks!

    One place there might be a memory leak is in the line
    exDialog = new ExceptionDialog(new javax.swing.JFrame());Even though the JFrame object goes out of scope when the ExceptionDialog method returns, JFrames stay around until they are closed, even though in this case it isn't even shown on the screen.

  • How to determine the java memory cosumption

    Hi.
    In our system Netweaver7.1, (on windows)
    I want to know java heap memory consumption.
    We can see the memory consumption from windows task manager, but the AS JAVA caught the memory heap memory size during startup.
    So itisn't correct.
    In NWA, many paerformance monitors are, but I don't know which tool is useful.
    I want to sizing the memory size with following logic.
    8:00~9:00 50% load
    The java memory is conusmed 3GB.
    11:00~12:00 100% load
    The java memorry will "may" be consumed 6GB.
    regards,

    I found the directory with java.exe on my XP client. After updating my Path and then typing 'java -versions' I still see a 'java not found message'. No problem though - a README.TXT says that I have JRE 1.1.7B.
    One final question - a co-worker who also has XP just starting seeing a pop-up window saying 'Runtime' error when running a Java applet. His java.exe is in a path that includes the sub-directory 'JRE' On my XP client, java.exe is in a path which includes a 'JRE11' sub-directory. We therefore seem to have different versions of the JRE. Since I don't see the Runtime error when running the same applet, should my co-worker try upgrading his JRE?
    Thank you.

  • Java.lag out of memory error

    my x2 cannot work with the pdf reader i downloaded from nokia store as there is java.lag out of memory error what should i do

    it is common in most s40 phones.....even my C3 does thesame

  • Java Memory Management/Out of Memory

    Hi Guys,
    I have a few questions about java memory management
    Because i keep encounter a lot of out of memory error which i think java does not handle Vector/ArrayList re initialisation automatically
    Asumme i have 2 million record in database and , i will process every 80000 and store it in Vector
    while(true)
    list = new Vector();
    list = GetResultFromDatabase() // Process Every 80000
    if list.size() > 0 =======> My VEctor list contain 80000
    //loop the 800000
    //Process Some logic and data
    list.clear();
    list = null;
    If u See , i need to call list.clear and list = Null every process so it wont cause me out of memory
    Before i put that 2 lines , i always hit out of memory Exception.
    Seems like garbage collector cannot claim memory if i dont declare
    Is Memory Occupied by VEctor cannot be recoverable if we dont explitcitynya clear it and set it to NULL??
    Because in term of logic wise it wont cause a problem if i just
    do in this statement after it process like below
    list = new Vector() which will reinstatiate the object.
    Thanks.

    Damm i should hacve read your post again
    Look here:
    while(true)
    list = new Vector();What uer doing is craeting a new vector object everytime the while does an ityteration so when your while loop does 40000 loops there will be 40000 new objects in jou memory
    i sugest moving the decleration outside the while loop:
      list = new Vector();
    while(true)
    ///rest of loop
    } This could also be a problem
    hope it help :-)
    werns

  • Java Memory Problem

    Hi,
    We are using apache and tomcat webserver for our site (built on Unix). We are experiencing a serious problem with java memory.
    For every 1 hour (at around 1000-1500 page hits), site is getting down and giving error,'java.lang.OutOfMemoryError'.
    We observed that the memory consumed by java parocess is not being garbage collected. It is building up gradually and reaching its max limit(128M), and then site is getting down, throwing exception 'java.lang.OutOfMemoryError'.
    I dont under stand what to do.
    Can you please suggest me what to do to fix the problem..
    thankyou,
    Mo

    Test run your server with java -Xloggc:<file> option which logs GC activity. This should give you a clue as to how often gc is running and how much of mem it reclaimed in each cycle. This is just an initial test. Once u know for sure that enough mem is not being reclaimed then you use some memory profiler tools and identify the memory leak and fix the code to release unwanted references.

  • Analysing SAP Java Memory Usage in Unix/Linux

    Hi,
    I need to analyze the SAP Java memory usage of Unix /Linux machine..NW 7.0
    Please guide with the commands and steps..complete prcedure.
    Based on it I should decide whether to create a new server node (or) increasing heap size
    Thanks in advance

    Hi,
    Do you have performance problems?
    How many CPU's are in the server?
    Did you check Log Configuration for delays or errors?
    Did you tune any exisiting parameters?
    You can add the nodes only if there is performance problems. You may think of adding one node to start with
    Proper number of server nodes within an instance:
    u2013 #ServerNodes = availableMemory / (JavaHeapPermSpaceStack)
    You can calculate the server nodes based on below formula
    No. of server Node = (RAM you want to assign or available RAM in GB)/2.5 ============> for 64-bit system
    No. of server Node = (RAM you want to assign or available RAM in GB)/1.5 ============> for 32-bit system
    Hence as per above discussion, we should go with 5 server nodes means,
    5 = RAM/2.5 (Assuming you are on 64-bit platform)
    i.e. RAM = 12.5 GB
    2). u2013 Configure JVM heap according to Note 723909 and Note 1008311 - Recommended Settings for NW 7.0 >= SR2 for the AIX JVM (J9)

  • Out of Memory Error in Java Agents running in lotus notes

    I have a java agent running inside lotus notes jvm. It runs fine for some days but after some days start giving out of memory error and terminates.
    I need to restart agent manager in notes to enable java agent running. Is there a way to catch out of memory error so that on its catch i could restart agent manager.
    Regards,
    Saitu

    Dear Peter,
    The agent is written in java and
    I need to know a way to enter catch block of 'OUTOFMEMORYERROR'.
    My whole code is in a try block with two catches, one for outofmemoryerror and another for exception. When outofmemory error occurs control passes to the exception catch and not outofmemoryerror catch.
    Since out of memory is an error and not an exception, is there a way to catch it or run some code when out of memory occurs.
    Regards,
    Saitu

  • High Java memory consumption.

    Hello,
    We are developing a solution using Servoy, which is a database server framework built in java. We have now 2 Servoy instances running on Debian linux servers, one with 64bit, both of them running java 1.6 update 26. We are having lot of crashes of the server with this error log:
    # There is insufficient memory for the Java Runtime Environment to continue.
    # Native memory allocation (malloc) failed to allocate 32776 bytes for Chunk::new
    # Possible reasons:
    # The system is out of physical RAM or swap space
    # In 32 bit mode, the process size limit was hit
    # Possible solutions:
    # Reduce memory load on the system
    # Increase physical memory or swap space
    # Check if swap backing store is full
    # Use 64 bit Java on a 64 bit OS
    # Decrease Java heap size (-Xmx/-Xms)
    # Decrease number of Java threads
    # Decrease Java thread stack sizes (-Xss)
    # Set larger code cache with -XX:ReservedCodeCacheSize=
    # This output file may be truncated or incomplete.
    # Out of Memory Error (allocation.cpp:317), pid=12359, tid=1777961872
    # JRE version: 6.0_26-b03
    # Java VM: Java HotSpot(TM) Server VM (20.1-b02 mixed mode linux-x86 )
    --------------- T H R E A D ---------------
    Current thread (0x092c8400): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=12368, stack(0x69f18000,0x69f99000)]
    Stack: [0x69f18000,0x69f99000], sp=0x69f95fe0, free space=503k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [libjvm.so+0x7248b0]
    We checked both the heap memory and the memory used by java in this case and we notice a highly increase of the total java memory, while the heap memory is resonable:
    JVM Information
    java.vm.name=Java HotSpot(TM) Server VM
    java.version=1.6.0_26
    java.vm.info=mixed mode
    java.vm.vendor=Sun Microsystems Inc.
    Operating System Information
    os.name=Linux
    os.version=2.6.29-xs5.5.0.17
    os.arch=i386
    System Information
    Heap memory: allocated=141440K, used=105555K, max=699072K
    None Heap memory: allocated=49312K, used=49018K, max=180224K
    root 16388 2.5 43.0 2829220 1811772 ? Sl 20:11 3:43 java -Djava.awt.headless=true -Xmx768m -Xms128m -XX:MaxPermSize=128m -classpath .:lib/ohj-jewt.jar:lib/MRJAdapter.jar:lib/compat141.ja
    Right now we are running it on the 64bit machine with -Xmx256m -Xms64m, and the memory is the same as on the 32bit one.
    We also tried different memory configurations, but the result is the same. Java goes up to more the 2GB of memory used, while the heap is about 100MB - 400MB. In the output above you can see 1.8GB used, but this is at startup, after few hours it goes to more then 2GB - 2.5GB, then it crashes in at most few days, sometimes in few hours or even less.

    Can the profiler see more then the heap? OK, I'll try to profile the server.
    Servoy uses Tomcat 5.
    The OS we run on is Debian. The 64bit machine is this:
    JVM Information
    java.vm.name=Java HotSpot(TM) 64-Bit Server VM
    java.version=1.6.0_26
    java.vm.info=mixed mode
    java.vm.vendor=Sun Microsystems Inc.
    Operating System Information
    os.name=Linux
    os.version=2.6.32-5-amd64
    os.arch=amd64
    and the current memory usage is this:
    System Information
    Heap memory: allocated=253440K, used=228114K, max=253440K
    None Heap memory: allocated=112512K, used=112223K, max=180224K
    , while the java process memory is this:
    root 11629 6.9 44.4 2105640 1829808 hvc0 Sl 11:42 14:18 java -Djava.awt.headless=true -Xmx256m -Xms64m -XX:MaxPermSize=128m -classpath .:lib/ohj-jewt.jar:lib/MRJAdapter.jar:lib/compat141.jar:lib/commons-codec.jar:lib/commons-httpclient.jar:lib/activation.jar:lib/antlr.jar:lib/commons-collections.jar:lib/commons-dbcp.jar:lib/commons-fileupload-1.2.1.jar:lib/commons-io-1.4.jar:lib/commons-logging.jar:lib/commons-pool.jar:lib/dom4j.jar:lib/help.jar:lib/jabsorb.jar:lib/hibernate3.jar:lib/j2db.jar:lib/j2dbdev.jar:lib/jdbc2_0-stdext.jar:lib/jmx.jar:lib/jndi.jar:lib/js.jar:lib/jta.jar:lib/BrowserLauncher2.jar:lib/jug.jar:lib/log4j.jar:lib/mail.jar:lib/ohj-jewt.jar:lib/oracle_ice.jar:lib/server-bootstrap.jar:lib/servlet-api.jar:lib/wicket-extentions.jar:lib/wicket.jar:lib/wicket-calendar.jar:lib/slf4j-api.jar:lib/slf4j-log4j.jar:lib/joda-time.jar:lib/rmitnl.jar:lib/networktnl.jar com.servoy.j2db.server.ApplicationServer
    About another app, I'm confused, because we do have another java app that uses much less:
    root      1149  0.3  2.1 843312 86988 ?        Sl   10:16   0:58 java -Xmx512m -Xms128m -cp noaa_server.zip server.WebServer
    and for this one, the heap is this:
    Memory: total: 129892352, free: 114666408, maximum: 518979584
    So yes, this one looks better. It uses 15MB from heap and 80MB in total from ram.
    But still, I don't get it, how can the process memory be affected while the heap is much low?
    Edited by: 897090 on Nov 14, 2011 6:35 AM
    Edited by: 897090 on Nov 14, 2011 6:39 AM
    Edited by: 897090 on Nov 14, 2011 6:40 AM

  • Web Service data source report causes Java memory leak

    Crystal Report designer fails to preview a report whose data source is a WSDL web service.  This happens when the Java run time process has exceeded the memory limit specified in the CRConfig.xml file.  The Java memory is never released by Crystal Reports until the Crystal Reports Designer is closed.  Version is Crystal reports 2008 (product version 12.2.4.507).
    This error also occurs in the Crystal Reports Viewer when used in a Microsoft .NET application (framework 3.5) referencing CrystalDecisions.CrystalReports.Engine.dll v12.0.2000.0, CrystalDecisions.Enterprise.Framework.dll v12.0.1100.0, CrystalDecisions.Enterprise.InfoStore.dll v12.0.1100.0, CrystalDecisions.ReportSource.dll v12.0.2000.0, CrystalDecisions.Shared.dll v12.0.2000.0
    I load the ReportDocument object based on the location of the .rpt file and then set the ReportSource object of the CrystalReportViewer control:
    string FullReportName = "TestFile.rpt";
    ReportDocument reportDoc = new ReportDocument();
    reportDoc.Load(FullReportName, OpenReportMethod.OpenReportByTempCopy);
    this.crystalReportViewer1.ReportSource = reportDoc;
    reportDoc.Close();
    reportDoc.Dispose();
    GC.Collect();
    The code displays the report in the report viewer.  However, every time the report is refreshed the Java runtime memory increases until the application cannot display the results.  The error messages are "Failed to retrieve data from the database." followed by "Cannot determine the queries necessary to get data for this report. Details: Unexpected error".  If you try to refresh the data once again the following errors occur: "Failed to retrieve data from the database." then "Cannot determine the queries necessary to get data for this report. Details: Schema file is invalid   Java heap space".
    Increasing the java heap space in the CRConfig.xml file merely prolongues the onset of this error.
    Is there a service pack or hot fix for this???
    PLEASE HELP.

    Many thanks for your help.  This solved the issue for our .NET code, however the leak is still present in the report designer.  I was also wondering if you could help further: because of the limits on the java memory process is there a way to ensure that a separate java process is started for each report that is loaded in my report viewers collection?  Essentially the desktop application that i have created uses a tab control to display each type report, so each tab goes through the following code when displaying a report and closing a tab:
    Is there a way to ensure that a different Java process is kicked off each time that I display a different report?  My current code in c# always uses the same Java process so the memory ramps up.  The code to load the report and then dispose of the report through closing the tab (and now the Java process) looks like this:
        private void LoadCrystalReport(string FullReportName)
          ReportDocument reportDoc = new ReportDocument();
          reportDoc.Load(FullReportName, OpenReportMethod.OpenReportByTempCopy);
          this.crystalReportViewer1.ReportSource = reportDoc;
        private void DisposeCrystalReportObject()
          if (crystalReportViewer1.ReportSource != null)
            ReportDocument report = (ReportDocument)crystalReportViewer1.ReportSource;
            foreach (Table table in report.Database.Tables)
              table.Dispose();
            report.Database.Dispose();
            report.Close();
            report.Dispose();
            GC.Collect();
    Thanks

  • Diagnostics Workload Analysis - Java Memory Usage gives BI query input

    Dears
    I have set up diagnostics (aka root cause analysis) at a customer side and I'm bumping into the problem that on the Java Memory Usage tab in Workload analyis the BI query input overview is given
    Sol Man 7.0 EHP1 SPS20 (ST component SP19)
    Wily Introscope 8.2.3.5
    Introscope Agent 8.2.3.5
    Diagnostics Agent 7.20
    When I click on the check button there I get the following:
    Value "JAVA MEMORY USAGE" for variable "E2E Metric Type Variable" is invalid
    I already checked multiple SAP Notes like the implementation of the latest EWA EA WA xml file for the Sol Man stack version.
    I already reactivated BI content using report CCMS_BI_SETUP_E2E and it gave no errors.
    The content is getting filled in Wily Introscope, extractors on Solution Manager are running and capturing records (>0).
    Did anyone come accross this issue already?
    ERROR MESSAGE:
    Diagnosis
    Characteristic value "JAVA MEMORY USAGE" is not valid for variable E2E Metric Type Variable.
    Procedure
    Enter a valid value for the characteristic. The value help, for example, provides you with suggestions. If no information is available here, then perhaps no characteristic values exist for the characteristic.
    If the variable for 0DATE or 0CALDAY has been created and is being used as a key date for a hierarchy, check whether the hierarchies used are valid for this characteristic. The same is valid for variables that refer to the hierarchy version.
      Notification Number BRAIN 643 
    Kind regards
    Tom
    Edited by: Tom Cenens on Mar 10, 2011 2:30 PM

    Hello Paul
    I checked the guide earlier on today. I also asked someone with more BI knowledge to take a look with me but it seems the root cause analysis data fetching isn't really the same as what is normally done in BI with BI cubes so it's hard to determine why the data fetch is not working properly.
    The extractors are running fine, I couldn't find any more errors in the diagnostics agent log files (in debug mode) and I don't find other errors for the SAP system.
    I tried reactivating the BI content but it seems to be fine (no errors). I reran the managed system setup which also works.
    One of the problems I did notice is the fact that the managed SAP systems are half virtualized. They aren't completely virtualized (no seperate ip address) but they are using virtual hostnames which also causes issues with Root Cause Analysis as I cannot install only one agent because I cannot assign it to the managed systems and when I install one agent per SAP system I have the message that there are already agents reporting to the Enterprise Manager residing on the same host. I don't know if this could influence the data extractor. I doubt it because in Wily the data is being fetched fine.
    The only thing that it not working at the moment is the workload analysis - java memory analysis tab. It holds the Key Performance Indicators for the J2EE engine (garbage collection %). I can see them in Wily Introscope where they are available and fine.
    When I looked at the infocubes together with a BI team member, it seemed the infocube for daily stats on performance was getting filled properly (through RSA1) but the infocube for hourly stats wasn't getting filled properly. This is also visible in the workload analysis, data from yesterday displays fine in workload analysis overview for example but data from an hour ago doesn't.
    I do have to state the Solution Manager doesn't match the prerequisites (post processing notes are not present after SP-stack update, SLD content is not up to date) but I could not push through those changes within a short timeframe as the Solution Manager is also used for other scenarios and it would be too disruptive at this moment.
    If I can't fix it I will have to explain to the customer why some parts are not working and request them to handle the missing items so the prerequisites are met.
    One of the notes I found described a similar issue and noted it could be caused due to an old XML file structure so I updated the XML file to the latest version.
    The SAPOscol also throwed errors in the beginning strange enough. I had the Host Agent installed and updated and the SAPOscol service was running properly through the Host Agent as a service. The diagnostics agent tries to start SAPOscol in /usr/sap/<SID>/SMDA<instance number>/exe which does not hold the SAPOscol executable. I suppose it's a bug from SAP? After copying the SAPOscol from the Host Agent to the location of the SMD Agent the error disappeared. Instead the agent tries to start SAPOscol but then notices SAPOscol is already running and writes in the log that SAPOscol is already running properly and a startup is not neccesary.
    To me it comes down the point where I have little faith in the scenario if the Solution Manager and the managed SAP systems are not maintained and up to date 100%. I could open a customer message but the first advice will be to patch the Solution Manager and meet the prerequisites.
    Another pain point is the fact that if the managed SAP systems are not 100% correct in transaction SMSY it also causes heaps of issues. Changing the SAP system there isn't a fast operation as it can be included in numerous logical components, projects, scenario's (CHARM) and it causes disruption to daily work.
    All in all I have mixed feelings about the implementation, I want to deliver a fully working scenario but it's near impossible due to the fact that the prerequisites are not met. I hope the customer will still be happy with what is delivered.
    I sure do hope some of these issues are handled in Solution Manager 7.1. I will certainly mail my concerns to the development team and hope they can handle some or all of them.
    Kind regards
    Tom

Maybe you are looking for

  • I cannot print a jpg attachment from my PC or iphone to my HP c510a printer. I can send text tho

    HP Photosmart c510a PC windows 7 64bit eprint.com has all my jpg attachments as pending.  Not printing.  Word docs print tho.  just no pics. See no error messages on the zeen and I get reply emails thanking me for using the serice, do I want to parti

  • How to block iCloud backups

    Hi Does anyone know what ports or addresses I need to block to stop iCloud backups?  Since the release of IOS 5 we've notice a significant increase in our bandwidth usage and by the process of elimination I've tracked it back to everyone's iPhones as

  • Duplicate records in hierarchy

    In R/3 we can create a set with duplicate values in different nodes, but the same hierarchy cant be loaded into BI due to the duplicate records. Is there a way i can load the hierarchy with duplicate values? I dont want to supress the duplicate value

  • Oacle 9i speed problem

    Hy everybody! Our firm have a one big problem with oracle 9i database. Problem is with speed functioning. We have an aplication maded in Visual basic, and we geting data from oracle 9i So we have instaled 9i. Before we had oracle 8i. Now when we inst

  • Opening CS2 files in InDesign CS3 - crashing

    Hi, I'm just wondering if anyone knows why InDesign CS2 files might crash InDesign CS3 when you try to open them (on Mac OS10.4.11)? The files still crash CS3 even when all the elements have been deleted from the file - all the text, pics, swatches,