How to change the permission for JVM shared memory?

S

Sumant Sankaran

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
 
H

Hugo

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top