java.lang.OutOfMemoryError - server going down


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: java.lang.OutOfMemoryError - server going down

  1. #1
    Join Date
    Dec 2004
    Posts
    16

    java.lang.OutOfMemoryError - server going down

    Hi,

    I've got a web application, which is using the Orion 2.02 application server. We've added another system to the suite of systems we already have in the last 3 months.

    Since then, we're having problems with the server and it keeps going down and on the log file we're getting a load of exceptions and below is the error message we got.

    We've already moved the system to a more powerful server. We've gone through everything and we have no definite answers. Is it hardware?? code(i.e.code leak)???

    Of course I know its running out of memory, but what else is causing it or has anyone experienced similar problems.

    Can anyone help and explain what is going wrong???

    [http-server] Exception calling scheduled listener: java.lang.NullPointerException
    <c18;client18>: caught exception [java.lang.OutOfMemoryError] null
    <c27;client27>: caught exception [java.lang.OutOfMemoryError] null
    <c30;client30>: caught exception [java.lang.OutOfMemoryError] null
    <c7;client7>: caught exception [java.lang.OutOfMemoryError] null
    <c1;client1>: caught exception [java.lang.OutOfMemoryError] null
    <c43;client43>: caught exception [java.lang.OutOfMemoryError] null
    [http-server] Exception calling scheduled listener: java.lang.NullPointerException
    <c10;client10>: caught exception [java.lang.OutOfMemoryError] null

    Thanks
    W

  2. #2
    Join Date
    Mar 2005
    Location
    Sendling, MUC, .de
    Posts
    100
    code leak & java == false ! (or are you running native code, ie using JNI?)

    Or maybe it's just as simple as that:
    Have you tried starting the monster by something like
    Code:
    java -Xmx256m Monster
    ?

    for help on non-standard options type "java -X" on the console.
    : Beware of bugs in the above code - I have only proved it correct, not tried it.

  3. #3
    Join Date
    Dec 2004
    Posts
    16
    What is Monster in java -Xmx256m Monster???

  4. #4
    Join Date
    Mar 2005
    Location
    Sendling, MUC, .de
    Posts
    100
    Ooops. Sorry, Monster is just a silly joke - I simply don't know the name
    of your main class and so I chose "Monster" for the example.
    The important thing is -Xmx256m which tells java to use up to
    256 MBytes of mem instead of the default 64 MB or what it is.
    : Beware of bugs in the above code - I have only proved it correct, not tried it.

  5. #5
    Join Date
    Dec 2004
    Posts
    16
    Yes I've tried that. We've changed the number various times and it still has problem.

  6. #6
    Join Date
    Jan 2005
    Location
    Limerick, Ireland
    Posts
    19
    what is the nullpointerexception error?

  7. #7
    Join Date
    Mar 2005
    Location
    Sendling, MUC, .de
    Posts
    100
    Sorry, no idea then.
    Only this: the NullPointerException need not necessarily be related to the OutOfMemoryException. So - to start with - assuming that, I'd remove "the other system" again so that no OutOfMemoryExceptions occur and then try to find the reason for the NullPointerExceptions. After that, solve the memory problem. Good luck!

    @blindasfcuk: you aren't asking what a NullPointerException is, are you?!
    : Beware of bugs in the above code - I have only proved it correct, not tried it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center