Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl EV script always closed with no warnings and error

by Krambambuli (Curate)
on Apr 05, 2017 at 11:01 UTC ( #1187088=note: print w/replies, xml ) Need Help??


in reply to Perl EV script always closed with no warnings and error

Is the server 'just dying', even when doing nothing and just sitting there?
Are there any requests hitting the server, do you maye monitor (tcpdump?) port 8080?
On what platform are you?

Your code compiles and runs without any hickup on my WS (Linux, Fedora 25), but I'm not sure how to try to reproduce what might be hitting you.

  • Comment on Re: Perl EV script always closed with no warnings and error

Replies are listed 'Best First'.
Re^2: Perl EV script always closed with no warnings and error
by processor (Initiate) on Apr 05, 2017 at 11:08 UTC
    I have test it 10 times with nodejs script 10k concurrent connection and every connection sending http request to google.com. It doesn't have problem. But if i tunnel data from my client pc, the server "just die" after 1 day running. i use linux debian jessie, perl5.25, perl5.20.
      Maybe you can track it down a little bit by logging 'everything'.

      I'd start by letting tcpdump log everything on input, everything on output into a file.

      Once the server dies, the final parts of the logs might help finding out what is wrong.
      Even if there is some bug to be found - I'd suspect some bad request - being able to reproduce the issue at will would be a huge help for debugging.

      Also, monitor the server's size while running. Maybe it runs out of memory if there are some sort of memory leaks...?

      Simply looking on the code and find what might be wrong is really hard, most of the time.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1187088]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2019-12-16 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?