Tuesday, January 21, 2014
Change the websphere plug-in log file with out restarting a web server
Normally if you want to delete, move or rename websphere web server plug-in log file, you must stop and start the web servers but UNIX systems to manually switch the web server plug-in over to a new log file, without having to stop the web server using the below steps
1 ) Go to the plug-in logs directory and create a new log file by using the touch command .
2 ) Change the permissions on the new file to 766.
3) Edit the plugin-cfg.xml file and change the log filename to the new filename.
4) Websphere plug-in instance will automatically switch over to the new log file name after "RefreshInterval".
5)Do not edit or delete the old plug-in log file for several minutes as it might still be in use by web server processes.
NOTE :
1) If you are using a multi-processed web server, there is no way of telling when a process will start using the new plug-in log file, because it is triggered from processing a request .
2 After all plug-in instances have switched over to the new log filename, you can delete, move, rename, or zero-out the old plug-in log file, if you want.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment