ross.mather is of course correct. The bottom line of all this is:
Watch the swap consumption over time. If it is rather static you simply have not enough physical memory and your system needs virtual memory (aka swapspace) to compensate for this.
If the swap consumption increases over time one (or several) of your running processes are likely to have a memory leak. That is: they allocate memory without giving it back once they don't use it any more. Giving the system more memory (or swapspace or both) will only increase the time until which the memory is exhausted.
To find out which process(es) use how much memory do the following:
This lists all processes, sorted by their allocated memory, their CPU comsumption, PID and commandline used to invoke them. Repeat this in intervals and compare the output to find the memory hogs.
Hi,
I've modified the syslogd source to include a thread that will keep track of a timer(or a timer thread). My intention is to check the file size of /var/log/messages in every one minute & if the size is more than 128KB, do a echo " " > /var/log/messages, so that the file size will be set... (7 Replies)
I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y"
#!/bin/bash
du -hs $1
while read SIZE ENTRY
do
if ;
then
find $1 -mtime +$2 -exec rm -f {} \;
echo "Files older than $2 days deleted"
else
echo "free Space available"... (4 Replies)
Hi,
Can anyone please advise a universal command option for using sar to check for paging/memory issues.
For Linux, I used sar -B and check on the majflt/s column and a high number is supposed to indicate paging issues, is that correct?
Unfortunately, on a Solaris server, sar -B does not... (1 Reply)
Hi all.
I have a .txt file that I need to sort it
My file is like:
1- 88 chain0 MASTER (FF-TE) FFFF 1962510 /TCK T FD2TQHVTT1 /jtagc/jtag_instreg/updateinstr_reg_1 dff1 (TI,SO)
2- ... (10 Replies)
Basically I want to shorten URLs on my html pasting site (pasteht.ml), by using "/~a1Pha" instead of "/paste/a1Pha". The ID is 5 numbers and letters, both cases.
For example:
/~idnum serves /paste/idnum.htm
/=idnum serves /paste/idnum.htm
/paste/idnum redirects to /~idnum (to update any old... (0 Replies)
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT OSF1
class_create
class_create(3) Library Functions Manual class_create(3)NAME
class_create - Create a new class
LIBRARY
Standard C Library (libclass.a)
SYNOPSIS
#include <apar_types.h> #include <sys/class.h>
class_change(class_apar_handle_t handle, char *class_name, struct resource_limits *limits);
PARAMETERS
The partition descriptor returned by class_open(). The name of the class to change. The input is the new resource limits, the output is
the resources available.
DESCRIPTION
Create a new class. The created class will be empty. Use class_add() to populate the class. If the value of percent causes the total
percentage of all classes to exceed 100%, the call will fail and avail will contain the remaining percentage available.
Specify CLASS_RESOURCE_SCHED_DISABLED for the target limit of any resource that is not needed.
Note that the calling process must have root access privileges.
RETURN VALUES
The operation was successfully completed. An invalid partition handle was specified. The class_name is not an ASCII string. The
class_name already exists. No space available in class_name. The requested percentage not is not in the range 0 - 100 or is not
CLASS_RESOURCE_SCHED_DISABLED or CLASS_RESOURCE_SCHED_DISABLED. Requested percentage not available. The struct resource_percent <xxx-
available> (where xxx is an integer in the range 0-100 representing percentage) will contain the maximum available percentage.
SEE ALSO Functions:class_init(3), class_change(3), class_close(3), class_configure(3), class_get_config_stats(3), class_close(3), class_delete(3),
class_destroy(3), class_disable(3), class_enable(3), class_save_database(3), class_restore_database(3), class_load_database(3),
class_change_name(3), class_database_file_exists(3), class_database_name(3), class_database_modified(3), class_get_classes(3),
class_get_class_members(3),
Commands:class_admin(8), runclass(1), class_scheduling(4)
Other: The System Administration guide. delim off
class_create(3)