Skip to Content
author's profile photo Former Member
Former Member

Java.lang.out of memory error

Hi all,

we r getting this error many times.When we restart the server we r not getting this error.what is the reason for this error and how to solve it with out restrating the server again ang agian.

Regards,

Kiran

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2006 at 11:31 AM

    hi Kiran,

    The problem could be with your Virtual Memory. Increase the system virtual memory and restart the system and server.

    This happens because your system goes out of memory and once restarting the server will free the memory. if you don't want that to happen, increasing the virtual memory will help.

    Regards

    Ak.

    Message was edited by: Arunkumar Ravi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi Kiran,

      > I have 2Gb of virtual memory in my system.still i

      This must be you RAM. This is good enough.

      > l i am getting the same problem.I think server in not

      > using proper amt of virtual memory.How can i know the

      > amt of virtual memory server is using and the way to

      > increase it.

      You can find your Virtual Memory settings in <b>My Computer --> Properties --> Advanced --> Performance Settings --> Advanced</b> (where in you can change the virtual memory settings). Give it something close to 4GB on each drive on the maximum side.

      You can find the usage from the task manager --> Performance tab.

      <i>

      You have to restart the system for the changes in Virtual Memory to take effect</i>

      Regards

      Ak.

      Message was edited by: Arunkumar Ravi

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2006 at 06:05 AM

    Hi Kiran

    look at sap note 759669

    I. If you are running SP9 or higher of the J2EE Engine 6.40

    proceed as follows:

    1. Start the configtool in <J2EE_HOME>/configtool directory

    2. Browse the tree in the left pane

    cluster-data -> Global server configuration -> services -> classpath_resolver

    3. In the right pane click on the key javac.Xmx

    4. In the Value edit field on the bottom insert 256 ( this according to your PHYSICAL memory)

    5. press the Set button in the upper right corner

    6. choose from the Menu File->Apply and confirm all windows popping up

    7. restart the J2EE instance

    and also increase the heap memory.

    look at note 710146 and following link to change the heap memory size.

    http://help.sap.com/saphelp_nw04/helpdata/en/00/3ca3e81b5a4c749b860ab1ed1fb206/content.htm

    regards,

    kaushal

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 19, 2006 at 08:22 AM

    Hi

    Increase your virtual mememory space. stop unwanted services.

    You aware that running portal requires atleast 2GB RAM and 8 GB hard disc space recommended

    Check further from

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/77317c8d-0701-0010-f093-ed35a427f559#java

    Cheers

    Jawahar Govindaraj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.