New CPU usage limit - monitoring usage

New CPU usage limit - monitoring usage

Posted by: chrisjj
Posted on: 2005-07-07 10:32:00

With regards to the below, can anyone tell me how one can access the CPU resource stats for a domain whether it is on an evaluation server or not? I've got a user with 'Enable user resource statistics' ticked yet yourdomain.com/stats/resources is Not Found.

Thanks.

Chris

https://panel.dreamhost.com/kbase/index.cgi?area=3079

We measure server resource consumption in CPU minutes. This number indicates how much time a processor spends working for your username. All shared hosting customers should use less than 30-40 cpu minutes per day for all their users on their account.

If you see a number referenced as cpu seconds, simply divide by 60 to get cpu minutes.

If you are presently on an evaluation server you can check CPU usage by downloading the file ~/logs/resources/*.sa.analyzed.0 . You should also be receiving daily resource reports to your primary contact email address. You can also view and download these stats files through the stats url of any of your domains (E.G. http://yourdomain.com/stats/resources )




Re: New CPU usage limit - monitoring usage

Posted by: tinycg
Posted on: 2005-07-08 19:58:00

I have the exact same issue, neither of my domains for my user show anything under domain.com/stats/resources, stats/ shows regular stats, but nothing under resources.

Maybe it takes a couple more days then they said for it to show?

Re: New CPU usage limit - monitoring usage

Posted by: snokarver
Posted on: 2005-07-09 01:07:00

Before I got a 404, now I get a 403 (as of Friday)

Re: New CPU usage limit - monitoring usage

Posted by: chrisjj
Posted on: 2005-07-09 02:39:00

> Before I got a 404, now I get a 403 (as of Friday)

Still 404 here FWIW.

Re: New CPU usage limit - monitoring usage

Posted by: tinycg
Posted on: 2005-07-09 06:11:00

Yeah I still get a 404, weird.

Re: New CPU usage limit - monitoring usage

Posted by: schweb
Posted on: 2005-07-09 11:01:00

You can find them by logging in via FTP and looking in the logs folder. You'll see a resources folder in there with all the data.

I'm not sure why the web view isn't working however.

bryan | website

Re: New CPU usage limit - monitoring usage

Posted by: Atropos7
Posted on: 2005-07-09 11:14:00

In reply to:

With regards to the below, can anyone tell me how one can access the CPU resource stats for a domain whether it is on an evaluation server or not? I've got a user with 'Enable user resource statistics' ticked yet yourdomain.com/stats/resources is Not Found.


The web access is broken, but in FTP there is a "resources" subdirectory that has a Perl script and some data files. I have two days of data files so far, and there are two types:
"itemized" appears to be a per-instance report, like so:

username     0.16 cpu     1388k mem      0 io ContactUs.pl

Then apparently the script is used to create the "analysized" files, that look like:

Process               CPU seconds      user   machine   count  average
ContactUs.pl 1.6300 1.667% 0.007% 11 0.148

Re: New CPU usage limit - monitoring usage

Posted by: chrisjj
Posted on: 2005-07-09 11:37:00

> The web access is broken,

Ah. Did I miss the DH annoucement of this?

> but in FTP there is a "resources" subdirectory

Subdirectory of what? I cannot see it anywhere here. I see only logs/, Maildir/ and <website>/.

Thanks.

Re: New CPU usage limit - monitoring usage

Posted by: Nef
Posted on: 2005-07-09 17:44:00

I checked mine, I found the "resources" directory in the main directory. where it lists your domains/logs/maildir.

Re: New CPU usage limit - monitoring usage

Posted by: ozgreg
Posted on: 2005-07-09 17:52:00

I do not think the viewer works but the resource stats are working fine, although they tend to take x number of days to get working..

Check your /home/username/logs/resources directory you can run the perl program or display the files to see your usage..

____________________

Wordpress Gallery2 Integration Community -> http://wpg2.ozgreg.com/

Re: New CPU usage limit - monitoring usage

Posted by: Atropos7
Posted on: 2005-07-09 20:03:00

I havent gotten any announcements either about the URL not working either.

In my ~/logs directory there is a subdirectory named 'resources', user-owned by me and group-owned by 'root' and permissions set to 700. Strangely enough, there is a symbolic link in this directory that points to the very same directory.

In the ~/logs/domain/service_id/html directory, where the statistics web pages are kept, is a symbolic link named 'resources' which links to the ~/logs/resources directory mentioned above. Since they have aliased '/stats' to the 'html' directory, one would expect the web server to access the usage reports at the URI '/stats/resources/'

I am getting the 403 Forbidden error using the URL they said to use because of the 700 permissions set on the ~/logs/resources directory. Since I am the owner, I can change the permissions to grant public/world read and execute permission.

Since there is no directory index page, all I get is the generated directory listing like so:

 Parent Directory        08-Jul-2005 07:48      -  
resources/ 09-Jul-2005 07:48 -
sa.analysis.pl 28-Jun-2005 22:06 2k
user.sa.analyzed.0 09-Jul-2005 07:48 3k
user.sa.analyzed.1 08-Jul-2005 07:48 3k
user.sa.itemized.0 09-Jul-2005 07:48 41k
user.sa.itemized.1 08-Jul-2005 07:48 48k

So, permissions on the ~/logs/resources directory are wrong and there is no fancy HTML generated.



cool Perl / MySQL / HTML+CSS

Re: New CPU usage limit - monitoring usage

Posted by: tinycg
Posted on: 2005-07-10 06:55:00

Yeah, just looked, mine isnt in logs/, but in main dir under resources/

weird.

Re: New CPU usage limit - monitoring usage

Posted by: everinjoy
Posted on: 2005-07-10 10:55:00

I enabled mine when the announcement came out a few days ago, but there is no resources directory in the main directory, the logs directory, or the individual domain directories.

Where else should I look?

Re: New CPU usage limit - monitoring usage

Posted by: Mark
Posted on: 2005-07-10 18:31:00

I wrote a little perl script to give me a graph. :)

I don't really know Perl though, so it's probably no good... and you need to mess with permissions and .htaccess files to get it going.

Re: New CPU usage limit - monitoring usage

Posted by: snokarver
Posted on: 2005-07-11 10:57:00

Looks like the directory may have moved.

Support told me:
They screwed up the permissions in the configuration - I can make it
viewable manually for you if necessary but it would probably be best just
to wait until they push out the correction to the live servers (I am not
sure if the permissions I would set are what they want).

Tags: contact emailcpu usagecpu secondsyourdomaindreamhosthttpsevaluation serverhttpstats filescgi areashared hostinglogsdomains