01-25-2017
it is usual problem with wrong configured java. Java runs garbage collection regularly and if it has too harsh settings for garbage collection, you will notice a small hang during the process. Check maximum and initial heap size and your garbage collection mechanism. Install some webapp - there some very nice with graphs and a lot of information - to monitor java heap. You will not see much information using standard UNIX toolset.
e.g.
Understanding Java Garbage Collection | CUBRID Blog :
Quote:
there is a term that you should know before learning about GC. The term is "
stop-the-world." Stop-the-world will occur no matter which GC algorithm you choose.
Stop-the-world means that the
JVM is stopping the application from running to execute a GC. When stop-the-world occurs, every thread except for the threads needed for the GC will stop their tasks. The interrupted tasks will resume only after the GC task has completed. GC tuning often means reducing this stop-the-world time.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I Installed Tomcat in an remote linux server (/usr/tomcat)and start service, using ./startup.sh (and tried with ./catalina.sh too).
//----------------------------------------------------------------//
# ./startup.sh
Using CATALINA_BASE: /usr/tomcat/apache-tomcat-6.0.16/
Using... (1 Reply)
Discussion started by: gothama
1 Replies
2. Shell Programming and Scripting
hi,
I need a command that restart the tomcat server.
for example for restart the tomcat i am using following command, /etc/init.d/tomcat restart ..but sometimes is not working...might be i want to use java code access this peace of script.
like using the grep and ps commands can i use?... (2 Replies)
Discussion started by: sankar reddy
2 Replies
3. IP Networking
Hello,
I have a socket programming code to do chatting(both server and client).
But this is limited to a single machines with multi users.
But my target is to perform chat operation on multiple IP addresses in a given LAN in college.
Can you please tell me if I can use TOMCAT as my server to... (3 Replies)
Discussion started by: nsharath
3 Replies
4. Solaris
I do not know the difference between the apache-http and the apche-Tomcat.Is they are differentiated on their version or on their features.:confused: (2 Replies)
Discussion started by: jayaprakash
2 Replies
5. Shell Programming and Scripting
Hello all,
I am working on a script to automate the process of restarting some tomcat servers. The versions of tomcat are pretty old and it often happens that they don't shut down gracefully and the PID needs to be manually killed. I am having a bear of a time getting a consistent PID from ps... (1 Reply)
Discussion started by: dkaplowitz
1 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am getting confused with the terms below. All I know is an application can be installed on a server. But I see the following terms used in a company. All of them are installed on same Unix box. Could you please help me out in layman terms as to what these exactly means. (PS: I don't... (1 Reply)
Discussion started by: tostay2003
1 Replies
7. Programming
Hi,
I have installed
following software on my linux machine.
Is there anything else required to run jsp pages on linux machine?
Please Help
Here are some details that might be helpful.
# lsb_release -a
LSB Version: ... (3 Replies)
Discussion started by: pinga123
3 Replies
8. Red Hat
Hi,
We have a OEL6.1 installed on our server.
We want developers to view there application logs generated on the server, but doesn't really want to give them access to server machine.
Can someone please suggest how can we configure apache/httpd to create a url which will show all files in... (1 Reply)
Discussion started by: shrshah64
1 Replies
9. UNIX for Advanced & Expert Users
Hi all,
on our application server we have the following script that monitor the status of the website, my problem here is that i have edite the retries from 3 to 5,
and the timewait to 120 second,
so the script should check 5 times every 2 minutes, and if the fifth check fails it must restart... (0 Replies)
Discussion started by: charli1
0 Replies
10. UNIX for Advanced & Expert Users
Hi,
I have been assigned a task to build a server with these requirements :
> has multiple tomcats running under the same apache.
> tomcat & jdk has to be binded with apache.
> latest openssl with all necesarry "mod" to bind with apache & tomcat.
I am fairly new to... (1 Reply)
Discussion started by: anaigini45
1 Replies
LEARN ABOUT SUSE
ocf_heartbeat_tomcat
OCF_HEARTBEAT_TOMCAT(7) OCF resource agents OCF_HEARTBEAT_TOMCAT(7)
NAME
ocf_heartbeat_tomcat - Manages a Tomcat servlet environment instance
SYNOPSIS
tomcat [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION
Resource script for tomcat. It manages a Tomcat instance as an HA resource.
SUPPORTED PARAMETERS
tomcat_name
The name of the resource (optional, string, no default)
script_log
A destination of the log of this script (optional, string, no default)
tomcat_stop_timeout
Time-out at the time of the stop (optional, integer, no default)
tomcat_suspend_trialcount
The re-try number of times awaiting a stop (optional, integer, no default)
tomcat_user
A user name to start a resource (optional, string, no default)
statusurl
URL for state confirmation (optional, string, no default)
java_home
Home directory of the Java (required, string, no default)
catalina_home
Home directory of Tomcat (required, string, no default)
catalina_pid
A PID file name of Tomcat (optional, string, no default)
tomcat_start_opts
Tomcat start options (optional, string, no default)
catalina_opts
Catalina options (optional, string, no default)
catalina_rotate_log
Rotate catalina.out flag (optional, string, no default)
catalina_rotatetime
Time span of the rotate catalina.out (optional, integer, no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 60s.
stop
Stops the resource. Suggested minimum timeout: 120s.
status
Performs a status check. Suggested minimum timeout: 60.
monitor
Performs a detailed status check. Suggested minimum timeout: 30s. Suggested interval: 10s.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 5.
EXAMPLE
The following is an example configuration for a tomcat resource using the crm(8) shell:
primitive example_tomcat ocf:heartbeat:tomcat
params
java_home=string
catalina_home=string
op monitor depth="0" timeout="30s" interval="10s"
SEE ALSO
http://www.linux-ha.org/wiki/tomcat_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents 1.0.3 07/05/2010 OCF_HEARTBEAT_TOMCAT(7)