I don't know if this helps, I have this in my config file. hypnotoad => { listen => ['http://*:3000'], pid_file => 'hypnotoad.pid', workers => 10, spare => 5, proxy => 1 },
here is my systemd file to start it: [Unit] Description=MyMojoApp After=network.target User=scott Group=scott [Service] User=scott Group=scott Type=forking PIDFile=hypnotoad.pid ExecStart=/usr/local/bin/carton exec hypnotoad /home/scott/mojoapp/script/ myapp ExecReload=/usr/local/bin/carton exec hypnotoad /home/scott/mojoapp/script /myapp ExecStop=/usr/local/bin/carton exec hypnotoad /home/scott/mojoapp/script /myapp KillMode=process WorkingDirectory=/home/scott/mojoapp [Install] WantedBy=multi-user.target On Thu, Nov 19, 2020 at 2:57 PM Joseph Fridy <jmfr...@gmail.com> wrote: > I have recently transitioned from solo development to beta testing for a > Mojolicious::Lite application. Upon this transition, I switched from my > casual use of morbo to hypnotoad. In order to not change my nginx > configuration, I had hypnotoad listen on port 3000. The application > appeared and I made my beta testers aware of its existence and went to > bed. Some time the next day, I got word of failures. When I tried to > connect to the application, I could connect but I was unable to access > database objects correctly. The Mojolicious::Lite script is named > setupTransfer.pl. There were many tens of processes named setupTransfer.pl > running on the server. I attempted hypnotoad --stop setupTransfer.pl, but > it failed with an error on Time::Piece. I rather inelegantly killed all > the setupTransfer.pl processes and hypnotoad. I checked my script for > errors, and found nothing salient. I restarted hypnotoad, and all appeared > to be working, but within a few hours setupTransfer.pl processes started to > proliferate, apparently without bound. I have stopped and restarted > hypnotoad several times since. For fear that this is a consequence of some > confusion because of making hypnotoad listen on port 3000, I have changed > my nginx configuration and switched to port 8080. Clearly I am ignorant, > and doing something stupid, but cursory documentation checks have not > pointed out my error. hypnotoad starts with an initial inventory of > setupTransfer.pl processes of 9, and they appear to increase monotonically > with activity. The server (a fairly lightweight ec2 instance) starts to > exhibit problems somewhere in the 60 or 70 range. > > What stupid thing am I doing? > > Regards, > > Joe Fridy > > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to mojolicious+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mojolicious/CA%2Bj3PDg%3DTdMhCWnh6aNHenRX-HJcJTCgeQL5rK9riRHq1gHoUQ%40mail.gmail.com > <https://groups.google.com/d/msgid/mojolicious/CA%2Bj3PDg%3DTdMhCWnh6aNHenRX-HJcJTCgeQL5rK9riRHq1gHoUQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/CAM%2Bc73YbvZrxPZTT1rZ2_0R4zT0JkHdZ9xc-hTkhCBPN9DqRCw%40mail.gmail.com.