06-22-2015
If you are running a database or a web server, then either or both are likely to be in the top 5 processes for memory. You may want to look at how much memory is allocated by the applications on your server and shrink the memory pool of those applications. You would likely need to restart the applications. Hence you should probably get downtime.
If you kill the wrong process you will probably need a reboot, and if you don't change the memory allocation, you will still be short on memory after the reboot.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi All,
I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages.
How can i terminate this daemon ? ? ?
Regards,
Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies
2. Shell Programming and Scripting
Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies
3. Linux
I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Discussion started by: sudhamacs
6 Replies
4. Shell Programming and Scripting
Hi Unix Gurus i am somewhat new to unix scripting so need your help to
create a script as below.
# This script would find the process consuming memory beyond a certain #limit. if the meemory consumption is more than 100% for a period of 1
# minute for the specific process. the script would... (0 Replies)
Discussion started by: robinforlinux
0 Replies
5. AIX
HI All,
Can anyone send me a command to find TOP 5 Memory consuming process.
It would be lelpful if I get output something like below
processname - pid - memory(in MB) - command
I tried few commands from the internet but the result only give the real memory usage or pagging, I want total... (4 Replies)
Discussion started by: bce_groups
4 Replies
6. AIX
Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold
I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies
7. Shell Programming and Scripting
i have edited a script to kill an exact mysql process is causing the high load on the server, my problem is, kill dont kill it!
script:
#!/bin/sh
top -n 1 -u mysql | grep mysqld | awk '{print $1}' > pid
proc='cat pid'
kill -9 $proc
or i try with
kill -9 `top -n 1 -u mysql | grep mysqld... (8 Replies)
Discussion started by: chandro
8 Replies
8. Shell Programming and Scripting
Hello,
I'd like to set a cron job that runs a shell script every 30 minutes or so to restart a java based service if the memory gets above 80%. Any advice on how to do this?
Thanks in advance!
- Ryan (19 Replies)
Discussion started by: prometheon123
19 Replies
9. Shell Programming and Scripting
Good afternoon
I need to KILL a process in a single command sentence, for example:
kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'`
That sentence Kills the process ID corresponding to the program CAL255.4ge.
However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies
10. Red Hat
I wanted to know how to find the memory taken by a process using top command. The output of the top command is as follows as an example:
Mem: 13333364k total, 13238904k used, 94460k free, 623640k buffers
Swap: 25165816k total, 112k used, 25165704k free, 4572904k cached
PID USER ... (6 Replies)
Discussion started by: RHCE
6 Replies
ncdnode(5) File Formats Manual ncdnode(5)
NAME
ncdnode - maximum number of open CDFS files (system-wide)
VALUES
Failsafe
Default
Allowed values
The minimum value allowed is The maximum value allowed is memory limited.
Specify a positive integer value.
DESCRIPTION
defines the number of slots in the inode table for in the CD-ROM file systems (CDFS). This number limits the number of open nodes that can
be in memory for CDFS file systems at any given time. It is functionally similar to but applies only to CD-ROM file systems.
Who Is Expected to Change This Tunable?
This tunable may need to be modified on systems that run applications requiring access to CD-ROM file systems.
Restrictions on Changing
The kernel module, which provides the file system type specific support for CD-ROM file systems, is now a dynamically loadable kernel mod-
ule (DLKM). Any changes to the value of the tunable will take effect after the kernel module is unloaded and re-loaded (see kcmodule(1M)),
or after system reboot.
When Should the Value of This Tunable Be Raised?
The value may need to be raised when running applications which require large numbers of simultaneously open CDFS files.
What are the Side Effects of Raising the Value?
More system memory will be consumed for the CDFS nodes. A larger static inode table for CDFS will be created based on the value of upon
kernel module load or system reboot
When Should the Value of This Tunable Be Lowered?
The value can be lowered to limit the number of CDFS open files on the system and reduce memory consumption.
What are the Side Effects of Lowering the Value?
Less system memory will be consumed for the CDFS inodes upon kernel module load or system reboot.
What Other Tunable Values Should Be Changed at the Same Time?
None.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
was developed by HP.
SEE ALSO
kctune(1M), kcmodule(1M), sam(1M), gettune(2), settune(2), ninode(5).
Tunable Kernel Parameters ncdnode(5)