Server Crash due to memory outage

Posted on 2006-05-17
Last Modified: 2013-12-10
    I have a problem in one application server running on windows 2000 Server. The Application is  deployed on the default server and the server crashes every two or three days. There are some java core files and heapdum files which are being dumped into the Appserver directory continuously and the files each of size nearing to 100 mb are dumped and once when the memory is filled out the Server Crashes. This is the present situation, what should be done to eradicate this issue ?

Question by:pavan_immadi
    LVL 3

    Accepted Solution

    You need to increase heap size.

    You can define initial heap size and maximum heap size from WebSphere administrative console.

    Servers > Application Servers > [your_server_name] > Process Definition > Java Virtual machine

    Check Verbose garbage collection
    Put reasonable Initial Heap Size ( Unit is MBytes )
    Put maximum Heap size which should be less than physical available memory ( Unit is MBytes )

    Once you changed above configuration, you need to recycle WebSphere and check your Process Logs file which will have JVM Garbage collection information.

    If there is Java Heap issue, then you can diagnose it using HeapAnalyzer. You can get IBM HeapAnalyzer from


    Andy Kim

    Author Comment

    It seems to be the issue is with the java objects the Application owners have developed in the application . So is there any way make the server work for longer duration ? I have increased the java Heap size and we have to see how it goes .

    LVL 3

    Expert Comment

    Increase heap size of java and monitor all services you are providing to application along with applicaiton server.

    See the datasources and try to decrease pool size for less using services. instead of putting huge objects into application memory put those objects in database and use simple jdbc calls/ejbs to retrive data as per your requirement.  

    Divide logs using log4j for each and every tier like for middle tier components create one log, for ui create another, for database related other etc.,  

    Server crash can not be avoided with increased heap size... if you are having more frequent database calls pool resources, open crussors etc are also decrease the performance.

    Read J2EE best parctices and divide your large application in to components .

    This is not a exact answer but it will help :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    -Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
    Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now