Vous êtes sur la page 1sur 7

AppsTec Technology Services LLC

P.O. Box 62805, Dubai, UAE


Website: www.appstec-me.com

Integration Project – Fujairah Government

Tomcat Configuration document.


Integration Project – Fujairah Government

Table of Contents

S. No Particulars Page No.

I Document Control 3
II How to start-up and shutdown tomcat 4
III How to change Tomcat default port. 5
Setting JVM size for tomcat.
IV 6

Page 2 of 7
AppsTec Technology Services LLC
P.O. Box 62805, Dubai, UAE
Website: www.appstec-me.com
Integration Project – Fujairah Government

I. Document Control
1.1 Revision History and Approval

Version Date Brief description of Prepared By Reviewed By Approved By


change
0.01 28-June-2017 Initial version Kadhar sayed
anwar iqbal

1.2 Distribution

Copy No. Name Date Location


1
2

Page 3 of 7
AppsTec Technology Services LLC
P.O. Box 62805, Dubai, UAE
Website: www.appstec-me.com
Integration Project – Fujairah Government

How to start-up and shutdown tomcat


Steps to start tomcat.

1) cd //Apache Tomcat 7.0.14/bin/


2) nohup ./catalina.sh run &

Steps to shutdown tomcat.


1) cd //Apache Tomcat 7.0.14/bin/
2) ./shutdown.sh

Page 4 of 7
AppsTec Technology Services LLC
P.O. Box 62805, Dubai, UAE
Website: www.appstec-me.com
Integration Project – Fujairah Government

How to change Tomcat default port.


Tomcat by default runs on port number 8080, However there is high chance get a port conflict
with others program. Sometime we just need to change the Tomcat port number.

Steps of changing the Tomcat Port


1) Locate server.xml in {Tomcat installation folder}\ conf \

2) Find following similar statement

<!-- Define a non-SSL HTTP/1.1 Connector on port 8180 -->


<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />

or

<!-- A "Connector" represents an endpoint by which requests are received


and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

3) About Tomcat’s server.xml file cites it’s runs on port 8080. Change the Connector
port=”8080″ port to any other port number.

For example

<Connector port="8181" protocol="HTTP/1.1"


connectionTimeout="20000"
redirectPort="8443" />

Above statement instruct Tomcat server runs on port 8181.

4) Edit and save the server.xml file. Restart Tomcat. Done

Page 5 of 7
AppsTec Technology Services LLC
P.O. Box 62805, Dubai, UAE
Website: www.appstec-me.com
Integration Project – Fujairah Government

Setting JVM size for tomcat.


Go to Apache Tomcat /bin directory.

By default you wont see setenv.sh file under /bin directory. You have to create one with
below parameters.

setenv.sh

1 export CATALINA_OPTS="$CATALINA_OPTS -Xms512m"

2 export CATALINA_OPTS="$CATALINA_OPTS -Xmx8192m"

3 export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=256m"

1. Go to command prompt.
2. Go to <Tomcat Directory>/bin directory
3. Execute command: ./catalina.sh run

Open Issues
ID Issue Resolution Responsibility Target Date Impact Date

Page 6 of 7
AppsTec Technology Services LLC
P.O. Box 62805, Dubai, UAE
Website: www.appstec-me.com
Integration Project – Fujairah Government

Closed Issues
ID Issue Resolution Responsibility Target Date Impact Date

Page 7 of 7
AppsTec Technology Services LLC
P.O. Box 62805, Dubai, UAE
Website: www.appstec-me.com

Vous aimerez peut-être aussi