tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg.C...@pfizer.com
Subject RE: jk2 new shmem using APR
Date Wed, 10 Mar 2004 16:24:46 GMT


> -----Original Message-----
> From: Guenter Knauf [mailto:eflash@gmx.net]
> Sent: 09 March 2004 21:32
> To: jfrederic.clere@fujitsu-siemens.com; rbb@rkbloom.net;
> tomcat-dev@jakarta.apache.org
> Subject: Re: jk2 new shmem using APR
> 
> 
> I believe there's a problem with the file rights, not with 
> SHM self. I think the scoreboard is created by the init 
> process, but later on when the child wants to access it it 
> has insufficient rights.
> Greg who reported the problem on Solaris posted an 'ls' of 
> the files created from APR and created from the older code 
> which Henri did put in for me, and there you could see the 
> difference...
> Greg, can you please repost this?

Here you go,  It does create a file, but with 0 size (even though we have
set something like 16m)

ie:

-rw-r--r--   1 root     other          0 Feb 27 12:31
cr.sandwich.pfizer.com_81.shm

Compared to the old mod_jk2 version 2.0.3 (same config bar the name and old
conector used)

-rwxr-xr-x   1 root     root     1000448 Feb 24 11:14 shm.file

Greg


> I saw these problems with another 3rd party module too 
> (mod_watch), and I looked for a solution, I've looked at this:
> /**
>  * Set a file to be inherited by child processes.
>  *
>  */
> APR_DECLARE_INHERIT_SET(file);
> which might probably solve it, but not tested yet with 
> mod_jk2; with the other module it didnt work, and I asked at 
> the httpd-dev list and was told that I should look at mod_ssl 
> which does some tricks to make sure that files created 
> by init are later accessable....
> 
> from this point of view APR is probably not broken, and we 
> need to do some more than only open the scoreboard file to 
> make sure it is later accessable.
> 
> Guenter.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message