05-03-2012
Quote:
Originally Posted by
hedkandi
Is it a good idea to stop & start it a regular interval instead?
But how do I check with command if the process is hung?
1. Depends on what the operating characteristics of the program. Drop a stop/start script in cron.daily/ and go from there.
2. Again, how do you characterize when it is hung? That is, what symptoms indicate to you that it is hung?
This User Gave Thanks to otheus For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi guys
I installed this new server with 5.0.7 openserver and i'm getting a lot of this process, if a stop and restart the printer spooler they go away but after a few minutes they appear again.This is how it looks like.
root 372 615 0 - - 00:00:00 <defunct>
root ... (0 Replies)
Discussion started by: josramon
0 Replies
2. Shell Programming and Scripting
I am working on a project, which need to constantly watch the process, and check its status, if it was dead, it should be restart automatically.
Please kindly refer me to URL which teach how to write this kind of script, or service.
Thanks. (1 Reply)
Discussion started by: dragondad
1 Replies
3. SuSE
I have a process that gradually eats up memory, it's currently at 80.2% and slowing down the linux server
> ps aux | grep SNMPME
root 3129 0.0 80.2 3591752 2480700 ? Sl Feb13 5:04 /opt/nampe/lib/snmpme/SNMPME config/startup.xml
Is there a command I can execute to restart this... (3 Replies)
Discussion started by: brendan76
3 Replies
4. Shell Programming and Scripting
A coworker has a shell script that runs from a scheduler at the 3am. The shell script runs sqlplus passing in a sql statement, which generate a file. This is done 21 times for 21 different sql statements. Recently, one of the sqlplus processes got hung.
Is there a way to monitor how long the... (2 Replies)
Discussion started by: prismtx
2 Replies
5. Shell Programming and Scripting
Is there a way I can run a command that will run in the kernel or in the memory and automatically kill certain scripts if they get to <defunct> processes, without having to be monitoring the server manually?
I have a Perl script which runs for 20k members and normally does not have any problems,... (2 Replies)
Discussion started by: ukndoit
2 Replies
6. Shell Programming and Scripting
I have written a script which checks for a file if that is being updated or not. If the files is not being updated then it will restart the process.
#!/bin/sh
DATE=`date +%Y%m%d%H%M%S`
LOG_FILE=/var/xmp/log/XMP_*
INCEPT=`ls -l $LOG_FILE |awk '{print $5}'`
PROC=`xms show pr |grep -i... (3 Replies)
Discussion started by: Siddheshk
3 Replies
7. Shell Programming and Scripting
HI,
I am trying to write a scrip which would restart active process. This is what i have written till now.
$ xms show pr PRESE.*
NAME STATUS ROLE PID RSTRTS STARTED MACHINE... (8 Replies)
Discussion started by: Siddheshk
8 Replies
8. Red Hat
when system is hung state due to swap, we will reboot it through ILO.
i want to know which process caused system hung. (1 Reply)
Discussion started by: Naveen.6025
1 Replies
9. UNIX for Dummies Questions & Answers
I have a multithreaded usermode program(actually a daemon) which is in hanged state.
To debug it I tried attaching the process to gdb, but the gdb hangs.
gstack also gets hanged.
I peeped into the proc file system and saw the process to be in sleeping state.
/proc/sysrq-trigger I guess... (1 Reply)
Discussion started by: rupeshkp728
1 Replies
10. Shell Programming and Scripting
I wish to monitor if my Tomcat process if Running, Hung, or Shutdown.
I cannot use any third party monitoring tools so i decided to use one of these to test if the tomcat server is responding or not .
1. nslookup
2. telnet
3. ps
The reason I do not use wget / curl is because it will... (2 Replies)
Discussion started by: mohtashims
2 Replies
LEARN ABOUT SUNOS
ncakmod
ncakmod(1) User Commands ncakmod(1)
NAME
ncakmod - start or stop the NCA kernel module
SYNOPSIS
/etc/init.d/ncakmod start | stop
DESCRIPTION
ncakmod is used to start or stop the Solaris Network Cache and Accelerator ("NCA") kernel module.
When the start option is specified at the command-line, the NCA kernel module will be activated for all physical interfaces listed in the
nca.if file. When the ncakmod command is invoked with the stop option, the NCA kernel module will print the following message:
To stop NCA, please set the status configuration parameter
to disable in ncakmod.conf and then reboot your system. See
the ncakmod.conf(4) manual page for more information.
Note that in order to properly stop NCA on your system, you must first edit the ncakmod.conf(4) file and set the status field to "disable,"
then reboot your system.
OPTIONS
start Starts the NCA kernel module.
stop Describes the current method for stopping the NCA feature.
EXAMPLES
Example 1: Starting and Stopping the NCA Feature
The following command is used to start the NCA feature:
example% /etc/init.d/ncakmod start
FILES
/etc/init.d/ncakmod The NCA kernel module startup script.
/etc/nca/ncakmod.conf Specifies configuration options for the NCA kernel module.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWncar |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
nca(1), ncab2clf(1), ncad_addr(4), nca.if(4), ncakmod.conf(4), ncalogd.conf(4), attributes(5)
SunOS 5.10 28 Sep 2001 ncakmod(1)