Results 1 to 10 of 10

Thread: Ruby on Rails: Memory Allocation

  1. #1
    Registered Member cPanel Partner NOC Badge
    Join Date
    Jul 2003
    Posts
    130

    Default Ruby on Rails: Memory Allocation

    I'm posting here because after hours and hours of research, I still haven't gotten anywhere. It would be a shame if I didn't figure this out and I'm really hoping someone that's familiar with how cPanel is setting up the RoR apps can shed some light on this. With a RoR app deployed, when image manipulation is being done using rmagick, we get -

    libgomp: Thread creation failed: Cannot allocate memory

    I'm assuming somehow CPanel is limiting the amount of memory the app can take up. Anyone has any clues?
    Arvixe - Freedom of the web at your fingertips

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,289
    cPanel Access Level

    Root Administrator

    Default

    Quote Originally Posted by Arvand View Post
    I'm posting here because after hours and hours of research, I still haven't gotten anywhere. It would be a shame if I didn't figure this out and I'm really hoping someone that's familiar with how cPanel is setting up the RoR apps can shed some light on this. With a RoR app deployed, when image manipulation is being done using rmagick, we get -

    libgomp: Thread creation failed: Cannot allocate memory

    I'm assuming somehow CPanel is limiting the amount of memory the app can take up. Anyone has any clues?
    Do you have Shell Fork Bomb protection (in WHM -> Security -> Security Center) enabled?

  3. #3
    Registered Member cPanel Partner NOC Badge
    Join Date
    Jul 2003
    Posts
    130

    Default

    Nope thats the first thing I checked actually had issues with that.

    Something I noticed is that as root, it doesn't happen so its definitely a memory restriction on a regular user.
    Arvixe - Freedom of the web at your fingertips

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,289
    cPanel Access Level

    Root Administrator

    Default

    Quote Originally Posted by Arvand View Post
    Nope thats the first thing I checked actually had issues with that.

    Something I noticed is that as root, it doesn't happen so its definitely a memory restriction on a regular user.
    I know the compilers tweak can adversely affect RoR apps as well. Try disabling that and see if this issue persists.

  5. #5
    Registered Member cPanel Partner NOC Badge
    Join Date
    Jul 2003
    Posts
    130

    Default

    David,

    Thanks for taking another crack at it. Compilers are not enabled on our servers either.

    EDIT: I meant, compilers tweak. The compilers are available for all users.
    Arvixe - Freedom of the web at your fingertips

  6. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,289
    cPanel Access Level

    Root Administrator

    Default

    I recommend letting our technical analysts take a look at things. They will be able to login to your server and determine the cause of this issue so it can be resolved: http://tickets.cpanel.net/submit

  7. #7
    Registered Member cPanel Partner NOC Badge
    Join Date
    Jul 2003
    Posts
    130

    Default

    Done: 466142

    Thank you David. You guys would surprise me 10 times over if you actually figure this out.
    Arvixe - Freedom of the web at your fingertips

  8. #8
    Registered Member
    Join Date
    Nov 2008
    Posts
    5

    Default

    This is an old thread, but did this issue get resolved? We've got *exactly* the same issue.

  9. #9
    Registered Member cPanel Partner NOC Badge
    Join Date
    Jul 2003
    Posts
    130

    Default

    I wish I had it documented but I'm running a pretty big blank on how this was resolved. We did however experience it when trying to use lovdbyless -

    How to install LovdByLess in a cPanel Account | Arvixe Blog

    Outlines some changes that were made to RMagick. I would look at that as I believe this was coming up when uploading an image and when RMagick was being called. So it had something to do with the Rmagick/Imagemagick installation.
    Arvixe - Freedom of the web at your fingertips

  10. #10
    Registered Member
    Join Date
    Nov 2008
    Posts
    5

    Default

    Awesome, thanks for the reply. That will give us something to adjust until we can figure out what's going on with Imagemagick.

Similar Threads

  1. Memory Allocation Problem
    By jparker3119 in forum General Discussion
    Replies: 1
    Last Post: 08-01-2012, 08:49 AM
  2. Replies: 9
    Last Post: 11-23-2009, 09:46 PM
  3. iptables: Memory allocation problem
    By codegirl42 in forum General Discussion
    Replies: 1
    Last Post: 11-27-2006, 05:26 AM
  4. iptables: Memory allocation problem
    By BW -Tim in forum General Discussion
    Replies: 5
    Last Post: 06-28-2006, 01:46 PM
  5. Ruby or Rails binding for cPanel? (Manage e-mail addresses through rails)
    By dunnil in forum Bind / DNS / Nameserver Issues
    Replies: 0
    Last Post: 05-12-2006, 05:00 PM
bargain