Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Shared Memory Size?

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


09su.research at gmail

Jul 1, 2009, 1:51 PM

Post #1 of 5 (501 views)
Permalink
Shared Memory Size?

Hi all

Due to some fellows' advice, I got to know we cannot use a global
variable as we do in a single program.

Now I use an example, "mod_example_ipc.c" to use the shared memory.

The shared memory is containing user specific data for each ip
accessing to my proxy server.

I was wondering about how much the shared memory is available.

If it does not guarantee much space, the scalibility may be issue later.

Does anybody know about the size spec of the shared memory?

Thanks!

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


lyle.wincentsen at gmail

Jul 1, 2009, 2:47 PM

Post #2 of 5 (464 views)
Permalink
Re: Shared Memory Size? [In reply to]

I don't know what the limit on shared memory would be, but it seems like
what you're describing is exactly what "sessions" are for.

On Wed, Jul 1, 2009 at 3:51 PM, Brian Kim <09su.research [at] gmail> wrote:

> Hi all
>
> Due to some fellows' advice, I got to know we cannot use a global
> variable as we do in a single program.
>
> Now I use an example, "mod_example_ipc.c" to use the shared memory.
>
> The shared memory is containing user specific data for each ip
> accessing to my proxy server.
>
> I was wondering about how much the shared memory is available.
>
> If it does not guarantee much space, the scalibility may be issue later.
>
> Does anybody know about the size spec of the shared memory?
>
> Thanks!
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>


09su.research at gmail

Jul 1, 2009, 3:03 PM

Post #3 of 5 (473 views)
Permalink
Re: Shared Memory Size? [In reply to]

Hi. I am a beginner of Apache.

When you say, "what "sessions" are for", does that mean I can create
sessions to make more shared memory?

Do you have any sample code for sessions? Does anybody know what the
limit of shared memory is exactly?

Thanks.

On Wed, Jul 1, 2009 at 5:47 PM, Lyle
Wincentsen<lyle.wincentsen [at] gmail> wrote:
> I don't know what the limit on shared memory would be, but it seems like
> what you're describing is exactly what "sessions" are for.
>
> On Wed, Jul 1, 2009 at 3:51 PM, Brian Kim <09su.research [at] gmail> wrote:
>>
>> Hi all
>>
>> Due to some fellows' advice, I got to know we cannot use a global
>> variable as we do in a single program.
>>
>> Now I use an example, "mod_example_ipc.c" to use the shared memory.
>>
>> The shared memory is containing user specific data for each ip
>> accessing to my proxy server.
>>
>> I was wondering about how much the shared memory is available.
>>
>> If it does not guarantee much space, the scalibility may be issue later.
>>
>> Does anybody know about the size spec of the shared memory?
>>
>> Thanks!
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe [at] httpd
>>   "   from the digest: users-digest-unsubscribe [at] httpd
>> For additional commands, e-mail: users-help [at] httpd
>>
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


lyle.wincentsen at gmail

Jul 1, 2009, 4:30 PM

Post #4 of 5 (459 views)
Permalink
Re: Shared Memory Size? [In reply to]

You can read about sessions in any number of good books. Here is a link to
O'reilly's "PHP In a Nutshell" on safari books online as an example.
http://my.safaribooksonline.com/0596100671/phpnut-CHP-10

In a nutshell (pun intended), session (cookies) let you save information
from each client that you can access even after navigating to another page.
On Wed, Jul 1, 2009 at 5:03 PM, Brian Kim <09su.research [at] gmail> wrote:

> Hi. I am a beginner of Apache.
>
> When you say, "what "sessions" are for", does that mean I can create
> sessions to make more shared memory?
>
> Do you have any sample code for sessions? Does anybody know what the
> limit of shared memory is exactly?
>
> Thanks.
>
> On Wed, Jul 1, 2009 at 5:47 PM, Lyle
> Wincentsen<lyle.wincentsen [at] gmail> wrote:
> > I don't know what the limit on shared memory would be, but it seems like
> > what you're describing is exactly what "sessions" are for.
> >
> > On Wed, Jul 1, 2009 at 3:51 PM, Brian Kim <09su.research [at] gmail>
> wrote:
> >>
> >> Hi all
> >>
> >> Due to some fellows' advice, I got to know we cannot use a global
> >> variable as we do in a single program.
> >>
> >> Now I use an example, "mod_example_ipc.c" to use the shared memory.
> >>
> >> The shared memory is containing user specific data for each ip
> >> accessing to my proxy server.
> >>
> >> I was wondering about how much the shared memory is available.
> >>
> >> If it does not guarantee much space, the scalibility may be issue later.
> >>
> >> Does anybody know about the size spec of the shared memory?
> >>
> >> Thanks!
> >>
> >> ---------------------------------------------------------------------
> >> The official User-To-User support forum of the Apache HTTP Server
> Project.
> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> >> " from the digest: users-digest-unsubscribe [at] httpd
> >> For additional commands, e-mail: users-help [at] httpd
> >>
> >
> >
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>


vpram86 at gmail

Jul 1, 2009, 9:11 PM

Post #5 of 5 (457 views)
Permalink
Re: Shared Memory Size? [In reply to]

>
> >> Does anybody know about the size spec of the shared memory?
>
>
If you are using Linux, check */proc/sys/kernel/shmmax*. That tells the max
size a single shared memory can have. If you want more change it and reboot
If you use solaris, check */usr/sbin/sysdef | grep SHMMAX* to get the
current max shared memory size and if you want more than that, go to *
/etc/system* and add this line at end set shmsys:shminfo_shmmax = <size u
want in bytes>

I dont know much abt Windows (guessing it around a GB. not sure)

Regards
Prasanna Ram

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.