Sponsored Content
Operating Systems Linux Red Hat How to find the process which is caused system hung state? Post 302705637 by aashish.sharma8 on Tuesday 25th of September 2012 09:59:58 AM
Old 09-25-2012
Hi Naveen,
I am not very familiar with swap but I think top or topas command's will give you the process which is taking most of the CPU
 

10 More Discussions You Might Find Interesting

1. IP Networking

system hung

I installed sco unix v 5.0.5 in the hp server lc 2000 HD size 27gb & ram 256 , used micro focus cobol for unix , aplication system bank , the problem is the system hung 2 or 3 times a day will you pls. give me the solution. thanks talib alsaadi :( (2 Replies)
Discussion started by: talib alsaadi
2 Replies

2. UNIX for Dummies Questions & Answers

SCO Openserver 5.0.7 Hung process problem

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

3. Shell Programming and Scripting

Monitoring for a hung process

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

4. Shell Programming and Scripting

zombie processes and hung process termination

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

5. Emergency UNIX and Linux Support

Check hung process and restart

Hi all I have networker running on a RHEL 5.7 and over time it hangs. So the solution backup team proposed is to check if the process is hung, to stop and start it. Unfortunately for me, the rc script only allows three commands, start, stop and status (no restart option) so I managed to set... (15 Replies)
Discussion started by: hedkandi
15 Replies

6. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

7. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies

8. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies

9. Shell Programming and Scripting

How to check if the process is Hung?

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

10. Infrastructure Monitoring

Can HPOV monitor server hung state ?

Hi, We have Solaris-10 running on VMware (x86). It is being monitored by HP Openview. Sometimes when this server hungs, while ping still works, HPOpenview can't alert that server is down (which is actually unresponsive). First symptom we see is, login failure. It will ask user name and after... (7 Replies)
Discussion started by: solaris_1977
7 Replies
init(8) 						      System Manager's Manual							   init(8)

Name
       init - process control initialization

Syntax
       /bin/init [ options ]

Description
       The ULTRIX system invokes the command as the last step in the boot procedure.  The system normally then runs the automatic reboot sequence,
       as described in If succeeds, the command begins multiuser operation.  If fails, begins single-user operation  by  giving  the  superuser  a
       shell on the console.

       You  can  use  the command so that parameters are passed from the boot program to so that multiuser operation begins immediately.  When the
       superuser terminates the single-user shell (by pressing CTRL/D), runs the command file without the reboot  parameter.   This  command  file
       performs  housekeeping  operations such as removing temporary files, mounting file systems, and starting daemons.  For further information,
       see

       In multiuser operation, creates a process for each terminal port where a user may log in.  To begin such operations, it reads the file  For
       further information, see For each terminal that is marked ``on'' in the file, forks and invokes the command specified for the current line.
       The command is passed the name of the terminal as the last argument.  The other arguments (if any) are specified after the command  in  the
       file.  Usually, the command is but it may be any command.

       The command reads the user's name and invokes to log in the user and execute the shell.

       Ultimately, the shell terminates because of an end-of-file.  The end-of-file may be typed explicitly or generated as a result of hanging up
       on a terminal line.  The main path of which has been waiting for such an event, wakes up and removes the appropriate entry  from  the  file
       which  records  current users.  The command then makes an entry in which maintains a history of logins and logouts.  The entry is made only
       if a user logged in successfully on the line.  Then the appropriate terminal is reopened and is reinvoked.

       The command catches the signal (signal SIGHUP) and interprets it to mean that the file should be read again.  The  shell  process  on  each
       line  which used to be active in but is no longer there is terminated; a new process is created for each added line; lines unchanged in the
       file are undisturbed.  Thus it is possible to drop or add phone lines without rebooting the system by changing the file and sending a  sig-
       nal to the process, using kill -HUP 1.

       The  command terminates multiuser operations and resumes single-user mode if it receives a terminate (TERM) signal.  That is, the superuser
       types kill -TERM 1.  If there are processes outstanding which are deadlocked (due to hardware or software failure), does not wait for  them
       all to die, but times out after 30 seconds and prints a warning message.

       If receives a terminal stop signal (the superuser types kill -TSTP 1), stops creating new processes and lets the system slowly die away.  A
       later hangup will resume full multiuser operations, or a terminate will initiate a single user shell.  This feature is used by and

       If dies, the system will reboot itself automatically.  If, at bootstrap time, the process cannot be located, the system will loop  in  user
       mode at location 0x13.

Options
       -a   Specifies that the system should autoreboot to multiuser mode.  This option is similar to specifying to the console prompt or specify-
	    ing either with the -r option or from the command line.

       -s   Specifies that the system should boot to single-user mode.

Diagnostics
       WARNING: Something is hung (wont die); ps axl advised
       The system is shutting down and cannot kill a certain process.  This usually occurs when a process cannot exit a device	driver	due  to  a
       persistent device error condition.

       init: `command  tty' failing, sleeping.
       The  command tried to spawn a new process (use the system call) for the command five times.  Each time, the command failed.  This may indi-
       cate that the command was invoked with invalid arguments.  Check the file for errors.  This error message is printed at level LOG_ERR.

       init: exec failed: cmd=	command reason
       The command tried to spawn a new process using the system call for the command.	The failed.  The reason is the explanation produced by the
       routine for why the failed.  This error message is printed at level LOG_ERR.

Files
       Lists current system users

       History of logins and logouts

       The		command reads this file for a command to execute for the terminal line

       Command file executed by

See Also
       ttys(5), getty(8), rc(8), reboot(8)

								       RISC								   init(8)
All times are GMT -4. The time now is 01:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy