1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ruby on Rails: Memory Allocation

Discussion in 'General Discussion' started by Arvand, Jul 23, 2009.

  1. Arvand

    Arvand Member

    Joined:
    Jul 26, 2003
    Messages:
    130
    Likes Received:
    1
    Trophy Points:
    18
    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?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,288
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, TX
    Do you have Shell Fork Bomb protection (in WHM -> Security -> Security Center) enabled?
     
  3. Arvand

    Arvand Member

    Joined:
    Jul 26, 2003
    Messages:
    130
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,288
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, TX
    I know the compilers tweak can adversely affect RoR apps as well. Try disabling that and see if this issue persists.
     
  5. Arvand

    Arvand Member

    Joined:
    Jul 26, 2003
    Messages:
    130
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,288
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, TX
    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. Arvand

    Arvand Member

    Joined:
    Jul 26, 2003
    Messages:
    130
    Likes Received:
    1
    Trophy Points:
    18
    Done: 466142

    Thank you David. You guys would surprise me 10 times over if you actually figure this out.
     
  8. cbtrussell

    cbtrussell New Member

    Joined:
    Nov 30, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    This is an old thread, but did this issue get resolved? We've got *exactly* the same issue.
     
  9. Arvand

    Arvand Member

    Joined:
    Jul 26, 2003
    Messages:
    130
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  10. cbtrussell

    cbtrussell New Member

    Joined:
    Nov 30, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Awesome, thanks for the reply. That will give us something to adjust until we can figure out what's going on with Imagemagick.
     

Share This Page