Jump to content

Perl script seems to timeout


Recommended Posts

I am trying to run a Perl script that processes a series of files and then produces an HTML page with the results. Despite my newbieness, I somehow managed to get it working (including adding the necessary Perl modules to my home path on the server). I tested it first on the server giving three files as input and then giving it about 75. The first test worked flawlessly. The second with more input files did not. I know the script works because I tested it with the 75 files on my desktop (it takes a minute or two to run). It seems like there is an issue with the server processing the request; some kind of timeout issue. Are certain processes limited to a fixed amount of server time? Like I said, I don't have much experience with servers and web programming so maybe someone has some insight into what might be happening? Thanks for your time and help!

Link to comment
Share on other sites

One thing you have to keep in mind is that while your desktop is only yours - shared webhhosts are shared between hundreds or thousands or even more users. And the question is: would you be happy if someone else would take too much server resources and makes it unavailable for you and other users? This is why there are various limits on shared webhosts.

 

There is always some way around. One could save the list of files, split it into several parts and execute one after another (not manually, everything can be coded), but still this will be a bit unfair to other users of the server if this will affect them.

 

Link to comment
Share on other sites

What causes the script to take so long? Is it because it causes massive server load, is it because it is waiting on some other slow server somewhere to respond, or is it some other reason? If it's massive server load then maybe you shouldn't be running that process on our servers anyways because it will likely get you suspended eventually.

Link to comment
Share on other sites

  • 2 months later...

I guess I just don't understand the logic of blaming some downtime today on someone who was running a script 65 days ago on a server with thousands of accounts.

 

Ahh see, you took it for fact, when it was intended to be humorous. Though, if the servers are set up right, it could be true. One person would be able to cause a crash, but I have a feeling ashoat would be on the banffensive in those cases.

Link to comment
Share on other sites

Vol7ron, ten years ago when you dropped that toothpick and it bounced sightly to the left it began the butterfly effect that eventually lead to my sense of humour being surgically removed by an Iraqi man in a cave with a rusty bowie knife. I'l spare you the boring details, but know that it is your fault entirely.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...