What do you have your memory settings at? I generally recommend at least
256MB of RAM for Java applications. The JAVA_OPTS on appfuse.org (to run the
demos) is set to:

-Xms256M -Xmx256M -XX:PermSize=128m -XX:MaxPermSize=128m
-Djava.awt.headless=true -XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled -XX:+UseConcMarkSweepGC -server

Matt

On Wed, Sep 16, 2009 at 2:14 AM, Anil Rawat <anil.rawa...@gmail.com> wrote:

> i am using appfuse1.93, spring,hiberante and struts 1.2
> i am  having an preformance issue with hibernate
>
> how can i set fetch mode= lazy dynamically at runtime so that only that
> class object is called
>
> because if i use lazy ="true" in  hbm.xml file in my parent class which is
> called , then hibernate is firing all the query to its last child and all
> hiearchy of its child which are not used at that moment
>
> and this is causing performance issue and causing my applicatin to run very
> slow and sometime java heap space eror is thrown
>

Reply via email to