[CentOS] Starting emacs gives "shmget failed: error 28" message

Fri Sep 4 00:30:12 UTC 2015
Robert Nichols <rnicholsNOSPAM at comcast.net>

On 09/03/2015 01:56 PM, m.roth at 5-cent.us 
wrote:
> Robert Nichols wrote:
>> On 09/03/2015 04:00 AM, Nicolas Thierry-Mieg wrote:
>>> just a shot in the dark, but what do you have in
>>> /proc/sys/kernel/shmmni ?
>>>
>>> According to man shmget:
>>> ENOSPC All possible shared memory IDs have been taken  (SHMMNI),  or
>>> allocating  a  segment  of  the requested  size  would  cause  the
>>> system  to  exceed  the system-wide limit on shared memory (SHMALL).
>>
>> "cat /proc/sys/kernel/shmmni" shows 4096.
>>
>> And, I find that "wc -l /proc/sysvipc/shm" shows that they are indeed
>> all in use. A badly coded java game appears to be the culprit. It's
>> grabbing SHM IDs by the thousands.
>>
>> Thanks for the pointer.  Your shot in the dark was right on target.
>>
>
> Simple solution: vi.

emacs was just the messenger. There was a real problem with the game
(which has nothing to do with emacs) grabbing all the SM IDs.  Simple
solution is to run the game under java-1.6.0-openjdk. It only
misbehaves with java-1.7.0-openjdk.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.