Sponsored Content
Top Forums Shell Programming and Scripting Memory Utilisation of a server Post 302854987 by Corona688 on Wednesday 18th of September 2013 05:43:23 PM
Old 09-18-2013
In what way is it "not working"?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

need to know CPU utilisation

We have a Sun Sparc System which has multiple CPUs (4 Nos.). I need a command/program that can be used to monitor the % utilization per CPU. (2 Replies)
Discussion started by: saood
2 Replies

2. UNIX for Advanced & Expert Users

How to check Process Utilisation

Hi, Is there any way in Unix to check for the system usage processwise ?? I mean I wud like to get a listing of running processes along with their CPU / memory utilisation so that I can spot dangerous the space / memory eaters .. Thanks & regards, SNS (2 Replies)
Discussion started by: Sabari Nath S
2 Replies

3. UNIX for Dummies Questions & Answers

amount of memory in my server

Hi all, is there any command that i can execute to find out the size of the harddisk and RAM on my server? Because i am not the SA, i do not have access to such infomation. (2 Replies)
Discussion started by: new2ss
2 Replies

4. UNIX for Dummies Questions & Answers

Script for CPU and Memory Utilisation

Hi, I want to check the CPU and Memory Utilisation in the whole machine (not for a single process). Can someone send me a ready made script which captures all information in a log every 5min?? Thanks, Ajith (0 Replies)
Discussion started by: Ajith Praveen
0 Replies

5. Shell Programming and Scripting

Start a new process when memory/cpu utilisation falls

Hi all, I am a newbie to whole shell scripting thing. I deal with computational studies and a lot of softwares which run on linux. At times, I have to schedule my jobs after some process has started. In these case, I have to use at command to schedule my job. However, I would like to know if... (0 Replies)
Discussion started by: johnsmithgr8
0 Replies

6. AIX

Memory utilization of my Server

Hi, i have two oracle instances running on my server with 7.5G RAM but it is showing almost 99% memory is full as you can see bellow. # svmon size inuse free pin virtual memory 1974272 1954270 20002 336595 1800652 pg space 4194304 ... (7 Replies)
Discussion started by: salmanucit
7 Replies

7. AIX

CPU and memory utilisation by one process

Hi, We need to monitor one process over time to see at which exact point it starts to consume to much memory and CPU (to correlate this with some other events). I am a newbie in AIX, so please could you tell me which command will give a snapshot of the current state of a process so that I... (1 Reply)
Discussion started by: yallow
1 Replies

8. Red Hat

Memory Utilisation of httpd process

Hi All, I have a RHEL 5.4 server which runs an Apache web server(2.2.23 compiled with prefork MPM).I want to find out the memory utilised by the web server. # ps -ylC httpd | wc -l 245 # ps -ylC httpd | more S UID PID PPID C PRI NI RSS SZ WCHAN TTY TIME CMD S ... (0 Replies)
Discussion started by: Hari_Ganesh
0 Replies

9. Linux

Reason/components behind high memory utilisation on linux

Hi friends, Problem: High memory utilisation of one linux server, due to which a database crashed on the server. My question to all: How does glance calculate that memory utilisation on the linux server is 98%. I mean what components are part of (31.4gb-599mb)? How can i check that myself? Can... (3 Replies)
Discussion started by: kunwar
3 Replies

10. AIX

Overall cpu Utilisation

Hi, I need a command to check overall cpu utilisation TIA (3 Replies)
Discussion started by: sumanthupar
3 Replies
Mojo::Asset::Memory(3pm)				User Contributed Perl Documentation				  Mojo::Asset::Memory(3pm)

NAME
Mojo::Asset::Memory - In-memory storage for HTTP 1.1 content SYNOPSIS
use Mojo::Asset::Memory; my $mem = Mojo::Asset::Memory->new; $mem->add_chunk('foo bar baz'); say $mem->slurp; DESCRIPTION
Mojo::Asset::Memory is an in-memory storage backend for HTTP 1.1 content. EVENTS
Mojo::Asset::Memory can emit the following events. "upgrade" $mem->on(upgrade => sub { my ($mem, $file) = @_; ... }); Emitted when asset gets upgraded to a Mojo::Asset::File object. $mem->on(upgrade => sub { my ($mem, $file) = @_; $file->tmpdir('/tmp'); }); ATTRIBUTES
Mojo::Asset::Memory inherits all attributes from Mojo::Asset and implements the following new ones. "auto_upgrade" my $upgrade = $mem->auto_upgrade; $mem = $mem->auto_upgrade(1); Try to detect if content size exceeds "max_memory_size" limit and automatically upgrade to a Mojo::Asset::File object. "max_memory_size" my $size = $mem->max_memory_size; $mem = $mem->max_memory_size(1024); Maximum size in bytes of data to keep in memory before automatically upgrading to a Mojo::Asset::File object, defaults to the value of the "MOJO_MAX_MEMORY_SIZE" environment variable or 262144. METHODS
Mojo::Asset::Memory inherits all methods from Mojo::Asset and implements the following new ones. "new" my $mem = Mojo::Asset::Memory->new; Construct a new Mojo::Asset::Memory object. "add_chunk" $mem = $mem->add_chunk('foo bar baz'); my $file = $mem->add_chunk('abc' x 262144); Add chunk of data and upgrade to Mojo::Asset::File object if necessary. "contains" my $position = $mem->contains('bar'); Check if asset contains a specific string. "get_chunk" my $chunk = $mem->get_chunk($offset); Get chunk of data starting from a specific position. "move_to" $mem = $mem->move_to('/home/sri/foo.txt'); Move asset data into a specific file. "size" my $size = $mem->size; Size of asset data in bytes. "slurp" my $string = mem->slurp; Read all asset data at once. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::Asset::Memory(3pm)
All times are GMT -4. The time now is 12:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy