« Torna a Application Servers

tcServer Configuration and Tips

Installation #1 #

Installation is relatively painless and easy.:

  1. Download tcserver from vmware's website
  2. unzip the installation and follow the installation guidelines at: http://pubs.vmware.com/vfabric5/index.jsp?topic=/com.vmware.vfabric.tc-server.2.6/getting-started/install.html

Create your tcServer Instance #

Once you have installed tcServer (basically just unzip it), you should follow the appropriate steps to create your first instance of tcServer: http://pubs.vmware.com/vfabric5/index.jsp?topic=/com.vmware.vfabric.tc-server.2.6/getting-started/postinstall.html.

Deploying Liferay #

With your tcServer instance created, you can deploy Liferay by pretty much following the same steps as the normal Tomcat installation steps. We'll assume you are using Windows for the purpose of this exercise:

  1. Modify the wrapper.conf located in the conf directory:
    1. change -Xmx to at least 1024m.
    2. add -XX:MaxPermSize=256m
    3. For production configurations, you will need to add other JVM parameters for improved performance.
  2. Unlike Tomcat where Liferay recommends placing shared libraries into lib/ext, tcServer recommends simply depositing into the lib folder. You can copy the jar files normally deposited into lib/ext directly into lib.
  3. All other instructions are the same as the Liferay Tomcat installation instructions.

The instructions vary slightly on a Linux/Unix based system, but that should be easy to figure out :)

Installation #2 #

Donwload and unzip `vfabric-tc-server-standard-2.9.3.RELEASE`.

Create new tc runtime instance #

Invoke:

mkdir servers tcruntime-instance.bat create -i servers lp-server

This will create a new server in `servers/lp-server` folder.

Configure #

Modify the `wrapper.conf` located in the `conf` directory:

+ change `-Xmx` to at least 1024m.

  • + change `-Xss` to eg 512k.
  • + add `-XX:MaxPermSize=256k

Example:

wrapper.java.additional.8="-Xmx1024M"
wrapper.java.additional.9="-Xss512K"
wrapper.java.additional.10="-XX:MaxPermSize=256m"

Modify `servers\lp-server\bin\setenv.bat` and add above changes as well:

set JVM_OPTS=-Xmx1024M -Xss512K -XX:MaxPermSize=256m

Done.

Ext libs #

Unlike Tomcat where Liferay recommends placing shared libraries into `lib/ext`, tcServer recommends simply depositing into the `lib` folder. Copy the jars files normally deposited into `lib/ext` directly into `lib`.

ROOT #

Simply copy ROOT folder from Tomcat bundle to the tcServers `webapps` folder.

Run #

Go to `vfabric-tc-server-standard-2.9.3.RELEASE\servers\lp-server\bin` folder and invoke:

tcruntime-ctl.sh run

This will start the instance as a foreground process (not a service).

0 Allegati
23677 Visualizzazioni
Media (0 Voti)
La media del punteggio è 0.0 stelle su 5.
Commenti