[JNDI and Naming] - Re: What is the exact correct way to make JBoss datasource J
by PeterJ
anonymous wrote : Above example, could someone advises me why I have to add
| Code:
|
| <use-java-context>false</use-java-context>
|
| to make this config works?
The use-java-context setting determines where in the jndi tree the name appears. If this is true (the default), the the full name is "java:/jdbc/esoafds". If the value is false then the full name is "jdbc/esoafds".
Only apps deployed into the application server can see names in the "java:" context, so if you are using a remote client to access a name, it cannot appear there. Thus you need use-java-context set to false.
In you second example, the web.xml, in combination with the jboss-web.xml, is saying that any time the app requests the name "jdbc/esoafds" to actually look at "java:jdbc/esoafds". But your ap is a Spring app and you are telling it the wrong name - try "jdbc/esoafds" instead.
Disclaimer: its been years since I used Spring and I don't know what funny things it does with JNDI names when looking things up, so you might have to play around with the names for a while. Also, you should use jNDIView to see what names you really have.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258656#4258656
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258656
15 years, 3 months
[Performance Tuning] - Re: Diff response times at different times
by PeterJ
Looks like you are following my instructions for graphing the GC data, but you incorrectly added the "after" and "millis" data points to the graph. When adding the extra data points, be sure to select the entire column and to place that selection in the "Y Values" box, and leave the "X Values" box blank. I suspect you switched the values of these two boxes.
Based on the current graphs, I don't think that 1GB is a sufficient heap size, try 1.5GB. and increase the young gen size to 500MB.
As to the response time differences, it could be the major GC time, but as I noted, the graphs are not correctly plotted so I cannot tell what the GC times are. You could, of course, scan the GC times for the major collections to see about how long each one takes.
How many processors/cores are on your system? If you have several, you might try the CMS collection.
Are you running a 32-bit or 64-bit JVM?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258646#4258646
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258646
15 years, 3 months