Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Ruby on Rails: Memory Allocation

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

  1. Arvand

    Arvand Well-Known Member
    PartnerNOC

    Joined:
    Jul 26, 2003
    Messages:
    130
    Likes Received:
    1
    Trophy Points:
    168
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Do you have Shell Fork Bomb protection (in WHM -> Security -> Security Center) enabled?
     
  3. Arvand

    Arvand Well-Known Member
    PartnerNOC

    Joined:
    Jul 26, 2003
    Messages:
    130
    Likes Received:
    1
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I know the compilers tweak can adversely affect RoR apps as well. Try disabling that and see if this issue persists.
     
  5. Arvand

    Arvand Well-Known Member
    PartnerNOC

    Joined:
    Jul 26, 2003
    Messages:
    130
    Likes Received:
    1
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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 Well-Known Member
    PartnerNOC

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

    Thank you David. You guys would surprise me 10 times over if you actually figure this out.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cbtrussell

    cbtrussell Member

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

    Arvand Well-Known Member
    PartnerNOC

    Joined:
    Jul 26, 2003
    Messages:
    130
    Likes Received:
    1
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. cbtrussell

    cbtrussell Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice