internal error occurred while trying to spawn the application

184 views
Skip to first unread message

Valen Onish

unread,
May 15, 2015, 11:16:38 AM5/15/15
to phusion-...@googlegroups.com
Regularly (once in 3 days) I get this:

 An internal error occurred while trying to spawn the application. Exception type: Passenger::SystemException Error message: Cannot create a Unix socket pair: Cannot allocate memory (errno=12) Backtrace: in 'void Passenger::ApplicationPool2::SmartSpawner::startPreloader()' (SmartSpawner.h:205) in 'virtual Passenger::ApplicationPool2::SpawnObject Passenger::ApplicationPool2::SmartSpawner::spawn(const Passenger::ApplicationPool2::Options&)' (SmartSpawner.h:750) in 'void Passenger::ApplicationPool2::Group::spawnThreadRealMain(const SpawnerPtr&, const Passenger::ApplicationPool2::Options&, unsigned int)' (Implementation.cpp:1038)


I use ruby 2.1.5 and rails 4.2.0

Any ideas?

Hongli Lai

unread,
May 16, 2015, 3:23:39 AM5/16/15
to phusion-passenger
On Fri, May 15, 2015 at 5:16 PM, Valen Onish <valen...@gmail.com> wrote:
> Regularly (once in 3 days) I get this:
>
> An internal error occurred while trying to spawn the application. Exception
> type: Passenger::SystemException Error message: Cannot create a Unix socket
> pair: Cannot allocate memory (errno=12)

I'm guessing that at that point, your system is out of memory. Try
increasing your memory or swap space.

--
Phusion | Web Application deployment, scaling, and monitoring solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Valen Onish

unread,
Jun 6, 2015, 8:48:42 AM6/6/15
to phusion-...@googlegroups.com
My ubuntu vps had 2Gb Ram and I’ve never seen 800mb exceeding usage.

Now I upgraded my vps to 4Gb, but after a couple days I’ve got the same error.

I’ve never got this error on passenger 4


--
You received this message because you are subscribed to a topic in the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phusion-passenger/MTnD3BUINEc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at http://groups.google.com/group/phusion-passenger.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/CAM3ce8FbhsPrYpkH%2BcnS%2BJ4OiTob%3DiyZ5Uue%2BfV29eqbwdpARA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks,                

Daniel Knoppel

unread,
Jun 9, 2015, 8:10:47 AM6/9/15
to phusion-...@googlegroups.com
Hi Valen,

You can run passenger-memory-stats, passenger-status to get more info on the memory behavior of passenger. It's important to know whether passenger is using the memory, your app, or something else on your vps.

If it happens every couple of days you should look e.g. at day 1 and then day 2 again to see if something is changing.

- Daniel
Reply all
Reply to author
Forward
0 new messages