Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Starman problem

by Logicus
on Feb 12, 2012 at 20:42 UTC ( #953335=perlquestion: print w/replies, xml ) Need Help??
Logicus has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

Is anyone familiar with the internals of Starman?

I seem to be having this annoying little intermittent problem which crops up from time to time.

Basically for no apparent reason, with no discernible specific frequency or timing, I get a small spike up to about 20% CPU utilisation, which then drops off again. Then sometimes the server will slow to a crawl requiring that I restart plack, whereupon it works perfectly again for an undefined length of time before repeating the same glitch.

At all times when it's running correctly it seems to be working fantastically fast and responsive and never drops a page or renders wrongly and remains working fine for hundreds and hundreds of hits before this glitch comes up again.

I've tried searching google for starman bugs but it appears no one else is having any problems with it so I'm wondering what my code is doing wrong to cause the problem in starman.

Any hints what I should look for would be appreciated, any one trolling me like before might well get trolled right back... depends if I can be bothered or not.

P.s, after the last time this problem occurred about 2 hours ago, I restarted plack as usual, the sites are working fine and fast, but my CPU usage chart is showing it's jammed at 18% utilisation +/- 0.5%, when normally it runs between 0.5% and 2% depending how many users are online on my site concurrently.

Replies are listed 'Best First'.
Re: Starman problem
by Anonymous Monk on Feb 12, 2012 at 20:56 UTC

    Any hints what I should look for would be appreciated

    Turn on logging, look at the logs

      That sounds like a good idea... how do I do that then?
        You read the documentation, and stop wasting everyones time
Re: Starman problem
by Anonymous Monk on Feb 12, 2012 at 20:56 UTC
    I'd ask at The thousands of users will have your answer.
      Hey ho, yet another troll lurking at perlmonks... what a surprise... I am infact using perlnights, through the "secret tunnel"...
Don't feed them ...
by LanX (Bishop) on Feb 12, 2012 at 21:50 UTC
    Stop trolling!

      I wish they would grow up and follow your advice I really do... then some progress might be possible.

Re: Starman problem
by Logicus on Feb 12, 2012 at 23:07 UTC

    Well I've switched from Starman to it's slightly slower cousin Twiggy now, and everything seems to be fine. I'll have to monitor it for a few days to see if the same problem occurs. If it does then logically the problem must be in my code, if it does not then there is indeed a flaw in starman which will need patching. Someone else can do that I don't have time to be fiddling around with low level stuff like this, I've got better things to be doing.

    Thanks for all the.. er.. "help", I see this place has improved no end since my last visit.

    See you next time I feel like having a good belly laugh at your expense my dear quasi-intellectual monk-brains.

Re: Starman problem
by Logicus on Feb 12, 2012 at 20:56 UTC
    Yo, thanks to the two cowards that just voted... you just proved my previous suspicion, and complaint, that around here votes are infact used as a cowards weapon to attack based on popularity of poster rather than content of posting. Whoever you are, you suck and I don't care what you think stupid monk-brains.

      maybe your post was down voted by people who had no idea what you were talking about and didn't see any indication that it had anything to do with Perl?

      something as simple as [code:// ... ] around the word Starman might have tipped folks off so they had some vague clue as to what you were talking about.

      You might have also alienated fewer people if, instead of saying "I've tried searching google for starman bugs", you had maybe said that you were aware of the starman issue tracker but didn't see anything there that looked similar.

      Or maybe people would have been more inclined to offer advice, and not down vote, if instead of saying "I'm wondering what my code is doing wrong to cause the problem in starman" you had said "here is an example of some code that triggers this behavior in starman, can anyone see anything that might be triggering a problem like: <code>...</code>"

      But these are all just guesses.

      (see also: How do I post a question effectively?)

        Nah mate, there's a couple of brain-dead anonymous cowards around here who are insanely jealous of what I'm doing and have been consistently trolling me since forever. I used to let them get to me and argue back, which merely empowered them further by making me look like a troll in the eyes of the wider crowd. Now I just laugh at them and their pathetic childish behaviour.

        In answer to your question, the system I am running with Starman is way too big and complex to copy paste into here, and since it seems to work perfectly 99.999% of the time, I'm stuck wondering if the problem really is my code or if I have just stumbled upon a bug that hasn't been documented yet in starman itself.

        As always I lean towards suspecting myself to be at fault prior to suspecting fault in others, a fact which can be easily exploited by anony-cowards like the ones you see here trolling me again.

        Anyhoo, what I need basically is some insight into what might be the causes so I have a road of investigation. I've spent quite a number of hours looking at the source code of starman itself and it appears to be flawless to me, which supports the notion that the bug is higher up in the code, but what could potentially cause this? That is the mystery I am faced with.

        Some sort of overflow?

        A PSGI app not exiting properly? or falling into an infinite loop?

        Something else?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://953335]
Approved by ww
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2018-07-21 04:33 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (444 votes). Check out past polls.