Welcome to WebmasterWorld Guest from 18.207.136.184

Forum Moderators: bakedjake

Message Too Old, No Replies

How to restart java service in solaris? my webserver is working v slow

     
6:58 am on Jan 6, 2010 (gmt 0)

New User

5+ Year Member

joined:Jan 6, 2010
posts:2
votes: 0


PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
4445 root 698M 196M sleep 59 0 0:00:36 0.0% java/32
7:27 am on Jan 6, 2010 (gmt 0)

Senior Member

joined:Dec 29, 2003
posts:5428
votes: 0


can you reboot the entire system? I reboot mine every 3-4 weeks early morning.
7:31 am on Jan 6, 2010 (gmt 0)

New User

5+ Year Member

joined:Jan 6, 2010
posts:2
votes: 0


is it necessary ... ? or is there anyway to restart the java services?
8:09 am on Jan 6, 2010 (gmt 0)

Senior Member

joined:Dec 29, 2003
posts:5428
votes: 0


It was a suggestion:)

From my experience, a rebooted server works better especially after having performance issues with a certain program.

8:23 pm on Jan 6, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member wheel is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 11, 2003
posts:5072
votes: 12


Yikes! No restart!

Depending on the distro you're using a simple restart command should do it. Google says on solaris something like this:
svcadm restart java
or svcadm restart javad

or maybe svcadm restart tomcatd
whatever the name of your java daemon is - put that in the command. That should gracefully restart the java server.

Don't restart the whole server. That can go badly, particularly if something doesn't come back to life - you've now got an offline server. There's very little need to restart most nix servers.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members