Link to home
Start Free TrialLog in
Avatar of hln_01
hln_01

asked on

WebSphere Problem

Anyone here have exprience the WebSphere automatically restarted?

What are those possible causes of this situation?

Any sites that I can search information about WebSphere's behaviour?

Thanks
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Hi hin_01,

Just a link here: http://www-4.ibm.com/software/webservers/appserv/

See if it's help.
Avatar of black
black

it get's restarted if you have it running as nohup mode and you call System.exit(0) anywhere in your code, or an exception or error causes the jvm to crash, it will automatically restart the instance again
Avatar of hln_01

ASKER

black,
  Anywhere I can get information on this restarting issue of WebSphere?

  Then how can I actually know the reason of the restarted of WebSphere is causing by the specific problem that stated by you.  Any way that I can trace the issue?

  Thanks a lot.


 
First make sure you don't have any System.exit(0) lines in your code.
Second check the websphere logs, in particular the err log for any exceptions.
I usually just do a search on the ibm website support. I've also got the course notes from the web sphere administration course which were pretty good.
Avatar of hln_01

ASKER

Black,
  my code didn't use any exit(0) command. and from the WebSphere err log I can see that sometimes it hits error like outofmemory .... but what cause WAS run out of memory?

  If let's say WAS need to communicate with Informix DB through JDBC driver, and somehow the processing at informix side is slow, would this cause the WebSphere App. Server to jam out which cause WAS run out of memory?
 
  Becuase of this we dun really know what cause WAS to restart by itself.

  Please assist.

  Thanks
Yes that would explain it. If it runs out of memory the appserver could quite possible restart itself, it would run out of memory simply because it used up all the space allocated to it.
If you have more available memory you could try starting up the jvm for your particular server with more memory using the mx option. For example you could use -mx128m which will tell the jvm to have an initial heap size of 128 megabytes.
The slow processing would not cause out of memory errors, it should mean that your appserver sits idle while it waits for a response.
One more thing, did you see any other exceptions like a TCP socket exception from the database? sometimes you get a Socket reset by peer exception from the database which causes the JVM to crash and that would also cause the appserver to restart.
Your best bet is to addres each of the exceptions in your error log one by one, first increase the memory. Increasing the memory might mask your error, it might occur but less regularly now so make sure you look at any other exceptions that are present in your log files.
Good luck!
the question because the information might be useful to others, but was not useful to you. To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.
 
3.  Ask Community Support to help split points between participating experts.  Just comment here with details.
 
4.  Delete the question because it is of no value to you or to anyone else.  To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.
 
If you elect for option 2, 3 or 4, just post comment with details here and I'll take it from there.  We also request that you review any other open questions you might have and update/close them.  Display all your question history from your Member Profile to view details.
 
PLEASE DO NOT AWARD THE POINTS TO ME.
 
____________________________________________
 
 
 
Hi Experts:
 
In the event that the Asker does not respond, I would very much appreciate your opinions as to which Expert ought to receive points (if any) as a result of this question.  Likewise, you can also suggest that I PAQ or delete the question.
 
Experts, please do not add further "answer" information to this question.  I will be back in about one week to finalize this question.
 
Thank you everyone.
 
Moondancer :)
Community Support Moderator @ Experts Exchange
 
P.S.   https://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp   
for my 2 cents worth - Well I'm not sure if this question is useful for anyone else and I don't think it's answered the question asked. Basically feel free to delete the question Moondancer:)
I appreciate your response, black, thank you.

I'll give this a few days, since I updated each of the open questions in the hopes that hln_01 will return and finalize them directly.

Moondancer
Community Support Moderator @ Experts Exchange
Avatar of hln_01

ASKER

MoonDancer,
  How can I drop a question?

  Please do assist.
  Thanks.

hln_01
ASKER CERTIFIED SOLUTION
Avatar of Moondancer
Moondancer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial