This works fine when i am uploading 1200 records manually. But when i try with loadrunner by creating 4 vusers who cocurrently insert 1200 records each, then it is throwing exception as
You might also want to increase the amount of physical memory on the machine.
Maybe even distributing the load across several JVMs might help address the problems.
Nothing magical, unfortunately.
Good luck!
-Cameron McKenzie
kkalyan kkumar
Greenhorn
Joined: Jul 23, 2008
Posts: 12
posted
0
Hey thanks for the help.
I am using spring-hibernate-maven-jetty project environment. so, to increase the jvm size i have set
MAVEN_OPTS to -Xmx1024m.
Hope i am in the correct path. Thanks for your timely help.
Ramesh Srinivasan
Ranch Hand
Joined: Aug 17, 2008
Posts: 35
posted
0
Originally posted by kkalyan kkumar: Hey thanks for the help.
I am using spring-hibernate-maven-jetty project environment. so, to increase the jvm size i have set
MAVEN_OPTS to -Xmx1024m.
Hope i am in the correct path. Thanks for your timely help.
Hi Kalyan,
I believe you have an INI file at your maven path. INI file you would able to see the arguments as you mentioned above. Change your setting there. It will work.
~Ramesh.
SCJP 5.0 93%<br /> <br />"We are what we repeatedly do , then excellence is not an action it is an Habit" Aristotle
Originally posted by kkalyan kkumar: Hey thanks for the help.
I am using spring-hibernate-maven-jetty project environment. so, to increase the jvm size i have set
MAVEN_OPTS to -Xmx1024m.
Hope i am in the correct path. Thanks for your timely help.
Um, Maven is your build technology, not running Java.
Unless it is while you are building that you do the bulk insert. And maybe even then you still want your "java" memory increase, so you would have to look in your pom.xml for the line that runs "java" and add it there. That is if it is when you build that it does the inserts.
If it is in your application, then you need to add that option to the line that calls "java" when you start up your application.
However, are you sure the code inside this if statement is ever called?
if ( i % 10 == 0 ) { getHibernateTemplate().flush(); getHibernateTemplate().clear(); }
Because that should evict those objects and you shouldn't have a memory problem with Hibernate.
OK, click, from where a Swing application, a website, or from some other app that calls out to java?
In a swing app, whatever starts your main class. From a website, probably be your server like when you start Tomcat or some app server. From some other app that calls out to java, then in that call. Wherever java is being called that loads your classes.