Sponsored Content
Full Discussion: Web Site Performance Issue
Top Forums Web Development Web Site Performance Issue Post 302565583 by otheus on Tuesday 18th of October 2011 08:49:52 AM
Old 10-18-2011
Read up on sar. Here's an example.

Here's another solution: between 1300 and 2100 run the ps command every minute. Append the output to a file which is rotated. Look at the file every day.

Code:
sid=`ps --pid $$ --no-headers -o sid`
ps -N --sid $sid -C sleep --sort start_time,comm,pid -ww \
         -o pid,c,pmem:5,rss:8,sz:8,size:8=TSIZE,vsz:8,nlwp,wchan:16,start_time,tty:8,args

You could make ascript out of it ("ps-snapshot" for instance) and add it to a cron file to run every few minutes like this:

Code:
*/3 * * * * /usr/local/bin/ps-snapshot >> /var/log/ps

Make sure you add /var/log/ps to the list of files to be rotated in /etc/logrotate.d
This User Gave Thanks to otheus For This Post:
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Web site setup

Hi, I have a m/c loaded with redhat linux, static IP address and this m/c intern connected to the internet thro leaseline. Now i need to setup a company website has www.abc.xyz.com. What necessary configuration i need to do so that others can view our website. Thanks Bache Gowda (5 Replies)
Discussion started by: bache_gowda
5 Replies

2. UNIX for Dummies Questions & Answers

Web site mirroring

I have a unix server running RedHat Linux 9.0. I want to mirror my site on a different server with the same configuration so if the main server goes down, the other server will take over. How is this best accomplished? (1 Reply)
Discussion started by: wvmlt
1 Replies

3. UNIX for Dummies Questions & Answers

Web Site Creation - testing .*pl etc....

Hiya All, How can I test my PERL Scripts whilst making my web site? I'm hoping there is some software out there that emulates a Web Server - without all the hassle of my building/setting up a Web Server from Stratch (Never done anything like that before - my next big project! 8) ) ... (7 Replies)
Discussion started by: marty 600
7 Replies

4. AIX

intranet web site

hello I would like to create an internal web site, but how do i make it with Aix ? I must to install apache and send my http pages in the declared repertory ? There are some configuration files to modify ?? thank you (2 Replies)
Discussion started by: pascalbout
2 Replies

5. What is on Your Mind?

Site Performance

The UNIX Forums have many users, thanks to you. We will be upgrading the server soon, to make more processing room for all the users every day. In the meantime (while waiting on the server upgrade) have limited the forum to disallow new connections when the load average is above 20; and... (9 Replies)
Discussion started by: Neo
9 Replies

6. AIX

how to browse a web site using script

hi guys, ok this script, i am trying to browse a http site and store the output in a text file ... when i run the script , i get a http compatibility error. does any1 have a good solution to contact a http server and save the html in a text file.. i know the result comes with html tags. ... (4 Replies)
Discussion started by: kirantalla
4 Replies

7. Shell Programming and Scripting

I need help in creating my first web site?

I have always wanted to create my own site, I've only had one class about the basics in creating web pages but know i would like to get into more and more detailed info about doing so anyone with alot of experience please help me out.:b: (0 Replies)
Discussion started by: kprescod4158
0 Replies

8. What is on Your Mind?

Site Performance II

I have updated the backend hosting for UNIX.COM and would appreciate feedback either in the form of a vote in the poll or a post so that we can plan for more changes if any are needed. In particular let me us know if you see any strange behavior from the site as there may still be some... (8 Replies)
Discussion started by: reborg
8 Replies
GUPNP_CONTEXT_HOST_PATH(3)						 1						GUPNP_CONTEXT_HOST_PATH(3)

gupnp_context_host_path - Start hosting

SYNOPSIS
bool gupnp_context_host_path (resource $context, string $local_path, string $server_path) DESCRIPTION
Start hosting $local_path at $server_path. Files with the path $local_path.LOCALE (if they exist) will be served up when LOCALE is speci- fied in the request's Accept-Language header. PARAMETERS
o $context - A context identifier, returned by gupnp_context_new(3). o $local_path - Path to the local file or folder to be hosted. o $server_path - Web server path where $local_path should be hosted. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Create new UPnP context and set host path <?php /* Create the UPnP context */ $context = gupnp_context_new(); if (!$context) { die("Error creating the GUPnP context "); } /* Host current directory */ gupnp_context_host_path($context, "./web", ""); ?> SEE ALSO
gupnp_context_new(3), gupnp_context_unhost_path(3). PHP Documentation Group GUPNP_CONTEXT_HOST_PATH(3)
All times are GMT -4. The time now is 08:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy