Any step-by-step guide to switching CLM 5.0.2 from Tomcat to WAS?
Are we lucky enough to be pointed to a step-by-step guide to switching CLM 5.0.2 from Tomcat to WAS, stumbled upon by a member of our community?
After the 8-day-7-night long saga ( post 220347) we maxed out the memory at 32GB allowed by Windows Server 2008 on a VM. Thus far, we have been advised "More Memory! More Memory!....more Resources! More Resources" with every occurence of interruption/issue. We are now looking at upgrading our hardware/VM to beyond the 32GB limit. We are also looking at switching to WAS for more stability.
Found instructions Switching from Apache Tomcat to WebSphere Application Server led:
- From backing up files and DB's as precaution
- To Setting up WebSphere Application Server
- To the mid-stream step Deploying applications for CLM on WAS which guides through a new installation of CLM apps. We assume for an existing Tomcat installation, we should:
- skip this step as described.
- Stop Tomcat Service and disable it
- Configure WAS to point to the existing CLM app area previously served by Tomcat.
This would be our first installation of WAS, our questions:
- We configure WAS with exactly same JVM options (mainly -Xmx16G, -Xms16G. -Xmn2G) as current Tomcat and server.startup.bat?
- Can we choose to run server.startup.bat on command linejust like before. We noticed that doing so wpuld spawn a Tomcat console while using Tomcat ... With WAS what should we expect? Any required config changes to server.startup.bat?
- Any other pointers? Anything we should be aware of?
Accepted answer
You can use the same JVM heap size settings in WAS.
After you switch from Tomcat to WebSphere, you should stop using the server.startup script. That script is used for starting up the bundled application server (previously Tomcat, and now WAS Liberty in 6.0.x).
Starting up WAS is very simple, just run <was_profile>/bin/startServer <server_name>. If you follow the instructions for configuring the WAS server, all necessary environment variables (such as JVM heap size) are already stored within WAS, and you don't need to pass them on with a script.
Stopping WAS is equally simple just run <was_profile>/bin/stopServer <server_name> -username <wasadmin> -password <userpassword>.
There are no direct method to migrate the user repository though, if you're not aware of. If you are switching from Tomcat User Management to WAS Federated Repository, you simply have to create each single user manually. If you are using LDAP, you have to configure LDAP in WAS from scratch.
EDIT: Read your post again and found something wrong. You should not skip any steps in "Deploying applications for CLM on WAS". WAS does not use anything in the existing "tomcat" directory.
After you switch from Tomcat to WebSphere, you should stop using the server.startup script. That script is used for starting up the bundled application server (previously Tomcat, and now WAS Liberty in 6.0.x).
Starting up WAS is very simple, just run <was_profile>/bin/startServer <server_name>. If you follow the instructions for configuring the WAS server, all necessary environment variables (such as JVM heap size) are already stored within WAS, and you don't need to pass them on with a script.
Stopping WAS is equally simple just run <was_profile>/bin/stopServer <server_name> -username <wasadmin> -password <userpassword>.
There are no direct method to migrate the user repository though, if you're not aware of. If you are switching from Tomcat User Management to WAS Federated Repository, you simply have to create each single user manually. If you are using LDAP, you have to configure LDAP in WAS from scratch.
EDIT: Read your post again and found something wrong. You should not skip any steps in "Deploying applications for CLM on WAS". WAS does not use anything in the existing "tomcat" directory.
Comments
showing 5 of 9
show 4 more comments
Comments
long TRUONG
May 11 '16, 4:51 p.m.