INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Closing Perl scripts.

Closing Perl scripts.

(OP)
I reported slow server load times to my ISP.
They tell me that several scripts have been running for a few days.
The script runs through with no infinite loops, can someone please suggest what on the server isn't cleaning up after itself?

Keith
www.studiosoft.co.uk

RE: Closing Perl scripts.

Depends on what the scripts do and how they are checking what the running time of the scripts are, some may be showing cumulative run time rather than a single instance.

Is this a VPS or a shared environment?

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.

RE: Closing Perl scripts.

(OP)
Thanks Chris.
It is a shared environment.
The script is very simple read of a database and output to HTML, it should only be active for a few seconds.
I have never had a need to kill a script before.

Keith
www.studiosoft.co.uk

RE: Closing Perl scripts.

read the script carefully. Is there any way that an error condition can cause a loop in the logic?

Bill
Lead Application Developer
New York State, USA

RE: Closing Perl scripts.

Quote:

The script is very simple read of a database and output to HTML,

It is possibly a cumulative time they are looking at rather than the script continuing to run, Perl scripts, like Python and PHP (other scripting languages are available) end when the last instruction is processed.

Assuming this is a process that runs on a HTTP server and executes on a URI request, it will always run as the account/site 'owner' so for the rather simplistic process monitoring will appear to be the same process instance continuing to run rather than every new instance of the script running and ending.

I see this same thing on our 'shared' servers with spamd/spamassassin processes running as the account user name. if the server hasn't been restarted for any reason, these processes might seem to have been running for several days, but they only 'wake up' when an email message is processed, which only takes a few milliseconds but many thousands of individual message scans clocks up several hours worth over a couple of months.

So I would suspect that your hosting provider 'technical' support are not too clued up on process monitoring and are treating 'top' time stats as continuous 'running' time rather than it being a cumulative time since the last server restart.

And as it is a 'shared' environment ... it's probably NOT even your site or scripts that are causing the slow load times.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.

RE: Closing Perl scripts.

(OP)
Thanks Chris
I missed your reply.
You are right about them being clueless sometimes but every time I find a decent ISP, they sell out to a big company and all goes down the tubes.
There response to my slow server was met by them saying they would speed it up.
My question of why it was not operating at full speed to start with was met with a shrug.

I am tired of migrating websites, the experts make it sound so easy and I am sure it is with simple sites which don't use any scripting or anything else useful.

Keith
www.studiosoft.co.uk

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close