Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How to change the permission for JVM shared memory?

Reply
Thread Tools

How to change the permission for JVM shared memory?

 
 
Sumant Sankaran
Guest
Posts: n/a
 
      03-27-2008
I am just wondering whether someone else out here has faced a similar
issue or may have a solution for this.

I am launching a java program (jdk 1.5) in linux (redhat 4) and then
checking the permission of the shared memory using the following
command

ipcs -a

I am seeing a shared memory permission of 777

------ Shared Memory Segments --------
key shmid owner perms bytes
nattch status
0x00000000 58884100 <my user id> 777 614400
2 dest


How do I go about altering the permissions of the shared memory? Is
there any option/workaround that I should be using ?


Thanks
Sumant
 
Reply With Quote
 
 
 
 
Hugo
Guest
Posts: n/a
 
      03-28-2008
On Mar 27, 7:02 am, Sumant Sankaran <(E-Mail Removed)> wrote:
> I am just wondering whether someone else out here has faced a similar
> issue or may have a solution for this.
>
> I am launching a java program (jdk 1.5) in linux (redhat 4) and then
> checking the permission of the shared memory using the following
> command
>
> ipcs -a
>
> I am seeing a shared memory permission of 777
>
> ------ Shared Memory Segments --------
> key shmid owner perms bytes
> nattch status
> 0x00000000 58884100 <my user id> 777 614400
> 2 dest
>
> How do I go about altering the permissions of the shared memory? Is
> there any option/workaround that I should be using ?
>
> Thanks
> Sumant


Try looking at http://www.cs.cf.ac.uk/Dave/C/node27.html; the link was
helpful when I was dabbling in shared memory earlier this year.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Fixed: The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {555F3418-D99E-4E51-800A-6E89CFD8B1D7} to the user NT AUTHORITY\LOCAL SERVICE SID (S-1-5-19). Skybuck Flying Windows 64bit 1 06-29-2009 06:17 PM
MS JVM and Sun JVM problem Young-Jin Lee Java 3 01-21-2004 04:25 AM
Different behavior for newStringUTF() for Sun JVM and IBM Jvm Lasse Java 1 01-05-2004 07:49 PM
Re: Handling both MS JVM and Sun JVM Kevin Hooke Java 2 09-02-2003 05:31 AM



Advertisments