[Persistence, JBoss/CMP, Hibernate, Database] - Demand Size increases
by paradisonoir
Hi,
I have implemented a test case where I send batches of 300, 500, 600, 700, 900, and 2000 demands. I want to measure size of each demand, so I decided to check the size of jboss application server folder before and after sending demand, and by dividing the difference by number of demands find the size of each demand. I did this test case for both persistent and non-persistent demand migrations. As you see the results, you would notice that size of each demand remains quite fixed as number of demands increases. However, this does not apply to the persistent situation, where size of each demand increases as number of demands does.
Our demand is nothing but just sending a request to compute something. There is no difference between these two modes, so that's what it rose following questions.
Here are my questions:
1- Is my method of measuring the size of each demand correct? It is for sure not accurate, but is there any other way to measure the demand inside the jboss demand storage?
2- Why size of demand changes in persistent scenario ?
3- Each persistent demand is roughly 20.41, whereas in non-persistent it's about 7.10. Is the difference because the overhead in terms of keeping additional information for the sake of being persistent ? Can you name some of those overheads or reasons?
And finally, here are my result, so you can see the difference ;
Non-Persistent (K.B) Persistent (K.B)
300 7.10 18.33
300 7.09 17.67
300 7.09 19.00
Average 7.09 18.33
500 7.14 24.00
500 7.07 26.00
500 7.06 22.00
Average 7.09 24.00
600 7.06 26.67
600 7.23 25.00
600 7.11 24.17
Average 7.13 25.28
700 7.13 25.71
700 7.12 24.29
700 7.13 27.14
Average 7.13 25.71
900 7.33 26.11
900 7.12 25.00
900 7.11 26.67
Average 7.19 25.93
2000 7.12 26.00
2000 7.13 27.00
2000 7.14 32.50
Average 7.13 28.50
[/img]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149278#4149278
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149278
17 years, 11 months
Problem with mod-jk use with Jboss
by Bijan Marjan
Hi,
I am currently running Apache 2.0.52 and JBoss 4.2.2 in my environment. I
have built mod-jk 1.2.26. I have configured
Apache as prescribed to call mod-jk.conf (see below). My intent is to have
Apache serve all static content and have
the specific uri's specified in the map to use Jboss.
However, the uri maps are not being detected. This is what I get in the
mod-jk logs:
[Sat May 03 17:46:50 2008][5520:2537034048] [debug]
jk_map_to_storage::mod_jk.c (3190): missing uri map for
<http://www.myhost.com:/wiki/skins/monobook/user.gif>
www.myhost.com:/wiki/skins/monobook/user.gif
[Sat May 03 17:46:50 2008][5521:2537034048] [debug] jk_translate::mod_jk.c
(3033): missing uri map for
<http://www.myhost.com:/var/www/html/images/bm.jpg>
www.myhost.com:/var/www/html/images/bm.jpg
[Sat May 03 17:46:50 2008][5521:2537034048] [debug]
jk_map_to_storage::mod_jk.c (3190): missing uri map for
<http://www.myhost.com:/var/www/html/images/bm.jpg>
www.myhost.com:/var/www/html/images/bm.jpg
[Sat May 03 17:46:55 2008][5520:2537034048] [debug] jk_translate::mod_jk.c
(3033): missing uri map for <http://www.myhost.com:/jmx-console/>
www.myhost.com:/jmx-console/
[Sat May 03 17:46:55 2008][5520:2537034048] [debug]
jk_map_to_storage::mod_jk.c (3190): missing uri map for
<http://www.myhost.com:/jmx-console/> www.myhost.com:/jmx-console/
If I change my Virtual Host and place my domain name instead of '*', all
requests, even for static content, get redirected
to mod-jk:
[Wed May 07 21:34:34 2008][18127:2537034048] [debug]
map_uri_to_worker::jk_uri_worker_map.c (682): Attempting to map URI
'/index.html' from 1 maps
[Wed May 07 21:34:34 2008][18127:2537034048] [debug]
find_match::jk_uri_worker_map.c (503): Attempting to map context URI
'/jkstatus/=status' source 'JkMount'
[Wed May 07 21:34:34 2008][18127:2537034048] [debug]
jk_map_to_storage::mod_jk.c (3211): no match for /index.html found
Any idea what the problem could be? Below is my configuration. Thank you.
Extract from httpd.conf:
# Virtual hosts
#
# Virtual host Default Virtual Host
<VirtualHost *>
JkMountFile /etc/httpd/conf/uriworkermap.properties
ServerSignature email
DirectoryIndex index.html index.php index.htm index.shtml
DocumentRoot "/var/www/html"
HostNameLookups off
</VirtualHost>
# Virtual host Virtual Host 0
<VirtualHost >
ServerAdmin <mailto:webmaster@myhost.com> webmaster(a)myhost.com
ServerSignature email
DirectoryIndex index.html index.htm index.shtml
JkMountCopy On
</VirtualHost>
<VirtualHost *:443>
JkMountCopy On
ServerAdmin <mailto:webmaster@myhost.com> webmaster(a)myhost.com
ServerSignature email
DirectoryIndex index.html index.php index.htm index.shtml
HostNameLookups off
DocumentRoot "/var/www/html"
</VirtualHost>
uriworkermap.properties:
# Mount the Servlet context to the ajp13 worker
/jmx-console=loadbalancer
/jmx-console/*=loadbalancer
/jmx-console/=loadbalancer
/web-console=loadbalancer
/web-console/*=loadbalancer
/jboss=loadbalancer
/jboss/*=loadbalancer
/jkstatus=status
/jkstatus/=status
workers.properties:
worker.list=node1,loadbalancer,status
# Define Node1
# modify the host as your host IP or DNS name.
worker.node1.port=8009
worker.node1.host=www.myhost.com
worker.node1.type=ajp13
worker.node1.lbfactor=1
# worker.node1.connection_pool_size=10 (1)
# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1
# Status worker for managing load balancer
worker.status.type=status
mod-jk.conf:
# Where to find workers.properties
JkWorkersFile conf/workers.properties
# Where to put jk logs
JkLogFile logs/mod_jk.log
# You can use external file for mount points.
# It will be checked for updates each 60 seconds.
# The format of the file is: /url=worker
# /examples/*=loadbalancer
#JkMountFile /etc/httpd/conf/uriworkermap.properties
# Set the jk log level [debug/error/info]
JkLogLevel debug
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
# JkOptions indicates to send SSK KEY SIZE
# Note: Changed from +ForwardURICompat.
# See <http://tomcat.apache.org/security-jk.html>
http://tomcat.apache.org/security-jk.html
#JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories
# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"
# Mount your applications
#JkMount /__application__/* loadbalancer
#JkMount /jmx-console loadbalancer
#JkMount /jmx-console/ loadbalancer
#JkMount /jmx-console/* loadbalancer
#JkMount /jboss loadbalancer
#JkMount /jboss/ loadbalancer
#JkMount /jboss/* loadbalancer
#JkMount /jkstatus status
# Add shared memory.
# This directive is present with 1.2.10 and
# later versions of mod_jk, and is needed for
# for load balancing to work properly
# Note: Replaced JkShmFile logs/jk.shm due to SELinux issues. Refer to
# <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225452>
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225452
JkShmFile run/jk.shm
# Add jkstatus for managing runtime data
<Location /jkstatus/>
JkMount status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
17 years, 11 months