You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "S.Uthaiyashankar (JIRA)" <ji...@apache.org> on 2007/11/21 05:05:46 UTC
[jira] Created: (AXIS2C-780) shared global pool for apache
processes
shared global pool for apache processes
---------------------------------------
Key: AXIS2C-780
URL: https://issues.apache.org/jira/browse/AXIS2C-780
Project: Axis2-C
Issue Type: Improvement
Components: core/transport
Affects Versions: Current (Nightly)
Environment: Linux
Reporter: S.Uthaiyashankar
Fix For: 1.2.0
apache processes are created by fork in linux. Due to that, if they have to share any data, it has to be through shared memory. We need an implementation to
(1) Create a shared memory global pool
(2) create context hierarchy in the global pool
(discussion can be found in http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg11000.html)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Updated: (AXIS2C-780) shared global pool for apache
processes
Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
S.Uthaiyashankar updated AXIS2C-780:
------------------------------------
Attachment: (was: apache_shared_global_pool.patch)
> shared global pool for apache processes
> ---------------------------------------
>
> Key: AXIS2C-780
> URL: https://issues.apache.org/jira/browse/AXIS2C-780
> Project: Axis2-C
> Issue Type: Improvement
> Components: core/transport
> Affects Versions: Current (Nightly)
> Environment: Linux
> Reporter: S.Uthaiyashankar
> Fix For: 1.2.0
>
>
> apache processes are created by fork in linux. Due to that, if they have to share any data, it has to be through shared memory. We need an implementation to
> (1) Create a shared memory global pool
> (2) create context hierarchy in the global pool
> (discussion can be found in http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg11000.html)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Resolved: (AXIS2C-780) shared global pool for apache
processes
Posted by "Damitha Kumarage (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Damitha Kumarage resolved AXIS2C-780.
-------------------------------------
Resolution: Fixed
This is fixed for 1.2.0 by Uthaiyashankar
> shared global pool for apache processes
> ---------------------------------------
>
> Key: AXIS2C-780
> URL: https://issues.apache.org/jira/browse/AXIS2C-780
> Project: Axis2-C
> Issue Type: Improvement
> Components: core/transport
> Affects Versions: Current (Nightly)
> Environment: Linux
> Reporter: S.Uthaiyashankar
> Fix For: 1.2.0
>
> Attachments: apache_shared_global_pool.patch, apache_shared_global_pool_improved_1.patch, diff_mod_axis.patch
>
>
> apache processes are created by fork in linux. Due to that, if they have to share any data, it has to be through shared memory. We need an implementation to
> (1) Create a shared memory global pool
> (2) create context hierarchy in the global pool
> (discussion can be found in http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg11000.html)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Updated: (AXIS2C-780) shared global pool for apache
processes
Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
S.Uthaiyashankar updated AXIS2C-780:
------------------------------------
Attachment: apache_shared_global_pool.patch
The patch "apache_shared_global_pool.patch" creates a fixed size memory pool and creating shared objects in that pool. It is not handling resizing of pool, defragmentation of the pool (i.e. say, the memory foot print is 10B(free), 5B(used), 10B(free) and if we want to create an object of size 15B, it will fail, eventhough the free space is 20B; to create the object, we need 15B continuous...)
> shared global pool for apache processes
> ---------------------------------------
>
> Key: AXIS2C-780
> URL: https://issues.apache.org/jira/browse/AXIS2C-780
> Project: Axis2-C
> Issue Type: Improvement
> Components: core/transport
> Affects Versions: Current (Nightly)
> Environment: Linux
> Reporter: S.Uthaiyashankar
> Fix For: 1.2.0
>
> Attachments: apache_shared_global_pool.patch
>
>
> apache processes are created by fork in linux. Due to that, if they have to share any data, it has to be through shared memory. We need an implementation to
> (1) Create a shared memory global pool
> (2) create context hierarchy in the global pool
> (discussion can be found in http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg11000.html)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Updated: (AXIS2C-780) shared global pool for apache
processes
Posted by "Lahiru Gunathilake (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lahiru Gunathilake updated AXIS2C-780:
--------------------------------------
Attachment: diff_mod_axis.patch
This patch needs some modifications since it give compilation error and some other build problems with windows.Here the modified patch.
> shared global pool for apache processes
> ---------------------------------------
>
> Key: AXIS2C-780
> URL: https://issues.apache.org/jira/browse/AXIS2C-780
> Project: Axis2-C
> Issue Type: Improvement
> Components: core/transport
> Affects Versions: Current (Nightly)
> Environment: Linux
> Reporter: S.Uthaiyashankar
> Fix For: 1.2.0
>
> Attachments: apache_shared_global_pool.patch, apache_shared_global_pool_improved_1.patch, diff_mod_axis.patch
>
>
> apache processes are created by fork in linux. Due to that, if they have to share any data, it has to be through shared memory. We need an implementation to
> (1) Create a shared memory global pool
> (2) create context hierarchy in the global pool
> (discussion can be found in http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg11000.html)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Updated: (AXIS2C-780) shared global pool for apache
processes
Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
S.Uthaiyashankar updated AXIS2C-780:
------------------------------------
Attachment: apache_shared_global_pool_improved_1.patch
please apply patch "apache_shared_global_pool_improved_1.patch" instead of "apache_shared_global_pool.patch". the patch "apache_shared_global_pool_improved_1.patch" is creating shared global pool only if configuration "Axis2GlobalPoolSize" > 0 in httpd.conf. So, if processes are sharing data by other means (e.g. through database or file), then above configuration can be omitted in httpd.conf. Note that, shared memory pool is using apr_global_mutex and it will be expensive.
> shared global pool for apache processes
> ---------------------------------------
>
> Key: AXIS2C-780
> URL: https://issues.apache.org/jira/browse/AXIS2C-780
> Project: Axis2-C
> Issue Type: Improvement
> Components: core/transport
> Affects Versions: Current (Nightly)
> Environment: Linux
> Reporter: S.Uthaiyashankar
> Fix For: 1.2.0
>
> Attachments: apache_shared_global_pool.patch, apache_shared_global_pool_improved_1.patch
>
>
> apache processes are created by fork in linux. Due to that, if they have to share any data, it has to be through shared memory. We need an implementation to
> (1) Create a shared memory global pool
> (2) create context hierarchy in the global pool
> (discussion can be found in http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg11000.html)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Updated: (AXIS2C-780) shared global pool for apache
processes
Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
S.Uthaiyashankar updated AXIS2C-780:
------------------------------------
Attachment: apache_shared_global_pool.patch
the patch "apache_shared_global_pool.patch" expects a configuration "Axis2GlobalPoolSize" in httpd.conf where the value should be size of the global pool in MB.
> shared global pool for apache processes
> ---------------------------------------
>
> Key: AXIS2C-780
> URL: https://issues.apache.org/jira/browse/AXIS2C-780
> Project: Axis2-C
> Issue Type: Improvement
> Components: core/transport
> Affects Versions: Current (Nightly)
> Environment: Linux
> Reporter: S.Uthaiyashankar
> Fix For: 1.2.0
>
> Attachments: apache_shared_global_pool.patch
>
>
> apache processes are created by fork in linux. Due to that, if they have to share any data, it has to be through shared memory. We need an implementation to
> (1) Create a shared memory global pool
> (2) create context hierarchy in the global pool
> (discussion can be found in http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg11000.html)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Commented: (AXIS2C-780) shared global pool for apache
processes
Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2C-780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544162 ]
S.Uthaiyashankar commented on AXIS2C-780:
-----------------------------------------
since the context hierarchy is having function pointers (of services, modules), all the shared libraries have to be loaded before fork. Hence, all the services were loaded at the start up when creating apache2_worker. Also, creation of apache2_worker is moved to axis2_post_config() from axis2_module_init().
> shared global pool for apache processes
> ---------------------------------------
>
> Key: AXIS2C-780
> URL: https://issues.apache.org/jira/browse/AXIS2C-780
> Project: Axis2-C
> Issue Type: Improvement
> Components: core/transport
> Affects Versions: Current (Nightly)
> Environment: Linux
> Reporter: S.Uthaiyashankar
> Fix For: 1.2.0
>
> Attachments: apache_shared_global_pool.patch
>
>
> apache processes are created by fork in linux. Due to that, if they have to share any data, it has to be through shared memory. We need an implementation to
> (1) Create a shared memory global pool
> (2) create context hierarchy in the global pool
> (discussion can be found in http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg11000.html)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org