[Fwd: Re: SPAM Subject: Re: [otrs] Multiple OTRS installations, same machine]
Matt Linton <mlinton <at> email.arc.nasa.gov>
2006-05-02 17:32:33 GMT
Hello all;
I sent this to the users list but didn't get specific feedback on the
parts of the code I was interested in, so this seems like a more
appropriate channel.
I have two OTRS installations within a single Apache -- one in mod_perl2
and one in plain CGI mode. If I set the SystemIDs too close together,
Log.pm seems to panic.
For instance, if #1 is SystemID 01 and #2 is SystemID 02, then they
conflict on memory space (it appears).
If #1 is SystemID 01 and #2 is SystemID 20, then they do not conflict.
It looks like in Syslog.pm, shmget is using SystemID as a parameter in
grabbing shared memory. Am I reading this right, and can this problem
be duplicated?
The offending line of code seems to be:
75 $Self->{IPCSize} = $Param{ConfigObject}->Get('LogSystemCacheSize
') || 4*1024;
76 # init session data mem (at first a dummy for RH8 workaround)
77 shmget(($Self->{IPCKey}+1), 1, 0777 | 0001000);
78 # init session data mem (the real one)
79 $Self->{Key} = shmget($Self->{IPCKey}, $Self->{IPCSize}, 0777 |
0001000) || die $!;
80 }
(Continue reading)