This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Help - Application crash.

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Every once in a while a weird thing happens to our application running on the production server - it crashes. At this time - any access to the application results in custom error page (specified in EAR file) to come up.
Normally, if I look at the task manager (we're running websphere on win2k) i would see too big java processes - one is websphere server and the second is the application itself. Well, after such a crash - the second process seems to be terminated, but it quickly restarts within a minute or two and the server is backup as if nothing happened. Neither stderr nor stdout logs have anything in them, so i'm a little clueless as to what's going on.
Any ideas?
[ June 18, 2003: Message edited by: Joseph Magerramov ]
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ur code has got memory leak
the reason u see a new java process started is coz the adminserver restarts it after the crash. according to my understanding, ur appserver runs out of memory causing the jvm to crash. adminserver sees tht the process is down & restarts it.
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, memory leak is a possibility.
You can enable Garbage Collection an monitor your app that way. It will give you a clue as to whether it is truly a memory leak or not.
Also look at your JVM heap size. If it is too less, you might want to bump it up. This will not stop your server from re-starting, but will delay the re-start until it reaches the max heap size.
 
Joseph Magerramov
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, these are some good ideas.
It happened again just 10 minutes ago. I don't think the app process was restarted or if memory usage was above normal - I was monitoring it through task manager at the time. Of course I opened task manager as soon as the server went down, so I could've missed the actual crash take place.
Btw, looking at the plugin log, it seems like it cannot connect to the app server. Here're a few lines from the log file:
[Thu Jun 26 09:35:47 2003] 000003dc 000005d0 - ERROR: ws_server_group: serverGroupNextRoundRobinServer: Failed to find a server; all could be down
[Thu Jun 26 09:35:47 2003] 000003dc 000005d0 - ERROR: ws_common: websphereFindServer: Failed to find a server
[Thu Jun 26 09:35:47 2003] 000003dc 000005d0 - ERROR: ws_common: websphereHandleRequest: Failed to find a server
[Thu Jun 26 09:35:51 2003] 000003dc 000005ac - ERROR: ws_server_group: serverGroupNextRoundRobinServer: Failed to find a server; all could be down
[Thu Jun 26 09:35:51 2003] 000003dc 000005ac - ERROR: ws_common: websphereFindServer: Failed to find a server
[Thu Jun 26 09:35:51 2003] 000003dc 000005ac - ERROR: ws_common: websphereHandleRequest: Failed to find a server
[Thu Jun 26 09:35:52 2003] 000003dc 000005e0 - ERROR: ws_server_group: serverGroupNextRoundRobinServer: Failed to find a server; all could be down

This seems to prove the server crash theory. As far as memory leak goes, you suggested to enable garbage collector to minitor our app that way. I was under impression garbage collection was enabled by default. Any other things to try to catch the leak?
[ June 26, 2003: Message edited by: Joseph Magerramov ]
 
Shalini Komarla
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry I was typing in a hurry there. What I meant was to enable verbose Garbage Collection ...it will help you monitor the Garbage Collection process and will give you a clue as to if it might be a memory leak. To enable verboseGC, in the command line agruments, add -verboseGC. The output will appear in the stderr file.
 
Joseph Magerramov
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks - I will do that. I'm monitoring application heap size right now and so far it's been at 45MB for the past couple of hours. So it must be some isolated function that causes the memory leak.
 
Joseph Magerramov
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just witnessed the whole thing unfold again - this time eliminating memory leak possibility. Process size memory size dind't change at all. In fact, this time the java process didn't even restart.
Websphere plugin simply couldn't locate the server, even though the server was running. I'm leaning towards database problems. We're accessing db2 7.2 database through datasources, I wonder if this could have anything to do with it.
 
Vinod Bijlani
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
whts ur websphere version?
there where some plugin issues before 4.0.5
4.0.5 patch has some cumlative plugin efixes
 
Joseph Magerramov
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Websphere version is 4.0.3 with cummulative plugin patch dated October 2002. The reason we dind't go with 4.0.4 is because it had major plugin problems over SSL connection.
I'll give 4.0.5 a try, thanks for the advice.
 
And then the entire population worshiped me like unto a god. Well, me and this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic