This content has been marked as final. Show 3 replies
Try to increase -XX:MaxPermsize=512m.
and use Heap arguments as -Xms1024m and -Xmx1024m.
As you have lot of EJB while startup all of them will loaded which will cause the problem.
Increasing Max Perm size will solve your problem.
i've tried increasing the MEm args before and it didnt help.
what i noticed its that the db connection which i was using was very slow,
i've monitored and saw that i was having lots of TCP connections and vry slow.
i've switched to another db and things started running much much faster now.
Thanks for your time.
Do one thing make your Initial capacity of your Datasource as zero .
Datasource >> Connection pool >> initial capacity make it zero.
Then your server will start quickly.