I have purchased VPS from one webhosting company. VPS comes with Virtuozzo power panel. It has 512MB gurranted RAM and dynamic RAM 2048 MB.
I have hosted single domain with 50MB database and wordpress installation.
But I am getting resource alerts. It goes sometime in yellow zone. I am not able to trace which thing is consuming more memory. My site has 3000 posts and 50,000 comments. is it because of that ? is it because of apache and mysql connections ? it is because of any plug-ins ?
how to trace that ? I have installed putty and typed "top" which is showing me following status at this time :
How can i find that which thing is consuming more memory ?
how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries
through a c program or java program
i want to store that data into database so i can show it graphically
thanks in advance (2 Replies)
Hi all,
I tried to output memory usage information while the process is
executing at a particular time. I found out some people
suggesting calling the ioctl. I followed it and wrote a test example:
#include <unistd.h>
#include <stdlib.h>
#include <iostream.h>
#include <fcntl.h>
#include... (2 Replies)
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Hi all,
Can you please tell me the command, with which one can know the amount of space a specific directory has used.
df -k . ---> Displays, the amount of space allocated, and used for a directory.
du -k <dir name> - gives me the memory used of all the files inside <dir>
But i... (2 Replies)
Hello Everyone,
I'm looking for a efficient script that monitors the memory usage on AIX and send email alerts when it reaches certain point.
Q) need to get alerts, when the memory usage exceed 90% on AIX?
or
Q) Need to get alerts when available free Memory is 1G or 10% etc
Any idea... (3 Replies)
Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Hello Friends,
I need to check memory usage & availability before I could run a program if there is enough memory is left or not, so how could i achieve this? Which command output i should rely on? I have diplayed outputs of SAR, VMstat and PRstat commands below, But how could i check memory... (8 Replies)
I can't check actual memory usage in the Redhat 5.5...
The used memory is 14214 Mb of Total 15919 by Free -m command.
I sum the RSS value on PS aux command result and the value is 5428.66Mb.
Yes It's quite different actual usage memory and RSS value.
So I added Shared memory value... (5 Replies)
Discussion started by: tom8254
5 Replies
LEARN ABOUT DEBIAN
dphys-swapfile
DPHYS-SWAPFILE(8) System Manager's Manual DPHYS-SWAPFILE(8)NAME
dphys-swapfile - set up, mount/unmount, and delete an swap file
SYNOPSIS
dphys-swapfile setup|swapon|swapoff|uninstall
DESCRIPTION
dphys-swapfile computes the size for an optimal swap file (and resizes an existing swap file if necessary), mounts an swap file, unmounts
it, and and delete it if not wanted any more.
OPTIONS
There is only one parameter, an command, which can be either of these:
setup Tells dphys-swapfile to compute the optimal swap file size and (re-)generate an fitting swap file. Default it 2 times RAM size. This
can be called at boot time, so the file allways stays the right size for current RAM, or run by hand whenever RAM size has changed.
swapon and swapoff These run the swapon and swapoff commands on the swapfile. Note that direct swapon/off from /etc/fstab is not possible,
as that is (at least on Debian) done in the same script that mounts /var (which is where the swap file most likely resides). And we
need to do our setup between those actions. So pass up /etc/fstab, and do our own swapon/off.
uninstall
Gets rid of an unwanted swap file, reclaiming the disk space.
CONFIG
The config file /etc/dphys-swapfile allows the user to set up the working environment for dphys-swapfile.
This config file is a sh script fragment full of assignments, which is sourced. Standard sh syntax rules apply. Assignments are:
CONF_SWAPFILE
Set where the swap file should be placed. Defaults to /var/swap. It is unlikely that you will need to change this, unless you have
very strange partitioning, and then you will most likely be using an swap partition anyway.
CONF_SWAPSIZE
Force file size to this. Default is 2*RAM size. This is unlikely to be needed, unless in strange diskspace situations. Note that
swap enabled and smaller than RAM causes kernal-internal VM trouble on random systems.
CONF_SWAPFACTOR
Set the relation between RAM and swap size. Must be an integer. Defaults to 2 which means swap size = 2 * RAM size
CONF_MAXSWAP
Set maximum size of the swap file in MBytes. Defaults to 2048 which was the former kernel limit for the swapfile size and is now a
limit to prevent unusual big swap files on systems with a lot of RAM.
FILES
/etc/dphys-swapfile
user config
$CONF_SWAPFILE
the swap file, target of the whole action (defaults to /var/swap)
EXAMPLES
dphys-swapfile is usually run at system startup and shutdown from an /etc/init.d (or /etc/rc.d) script, such as this (minimal) one:
#!/bin/sh
# /etc/init.d/dphys-swapfile - automatically set up an swapfile
# author franklin, last modification 2004.06.04
# This script is copyright ETH Zuerich Physics Departement,
# use under either modified/non-advertising BSD or GPL license
case "$1" in
start)
/sbin/dphys-swapfile setup
/sbin/dphys-swapfile swapon
;;
stop)
/sbin/dphys-swapfile swapoff
;;
esac
exit 0
If an sysadmin wants to have his swapfile in annother place, say /var/run/swap, he can use:
In /etc/dphys-swapfile:
CONF_SWAPFILE=/var/run/swap
AUTHOR
franklin@phys.ethz.ch, http://www.phys.ethz.ch/~franklin/
D-PHYS Swapfile Tools 2006.09.15 DPHYS-SWAPFILE(8)