Announcement Announcement Module
Collapse
No announcement yet.
Why is it so slow to run a web app in Sun unix box? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why is it so slow to run a web app in Sun unix box?

    Hi All,

    I have a spring configured webapp (modeled after appfuse) that runs good in weblogic 8.1 on window box. But when it is deployed to Sun Unix box, it is slow as hell even for pages that need no processing power at all (such as rendering login page). The hardware is adequate and it has other webapps (not spring configured) that are running fine.

    I have spend considerable amount time trying to figure out what causes the problem. I start to comment out all dao related spring configuration. The only one left is

    <beans>
    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSes sionFactoryBean">
    <property name="dataSource"><ref bean="dataSource"/></property>
    <property name="mappingResources">
    <list>
    <value>com/test/model/Correspondence.hbm.xml</value>
    </list>
    </property>

    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">org.hibernate.dialect.Orac leDialect</prop>
    </props>
    </property>
    </bean>
    </beans>

    If mappingResources property is included, the reponse time increases dramatically. Otherwise, it performs fine.

    Here is the Correspondence.hbm.xml,

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

    <hibernate-mapping package="com.test.model">
    <class
    name="Correspondence"
    table="PROFILE_CORRESPONDENCE"
    select-before-update="false"
    dynamic-update="false"
    dynamic-insert="false"
    optimistic-lock="version"
    >

    <composite-id>
    <key-property
    name="profileUid"
    column="PROFILE_UID"
    type="java.lang.Long"/>
    <key-property
    name="correspondenceSeq"
    column="CORRESPONDENCE_SEQ"
    type="java.lang.Long"/>
    </composite-id>

    <property
    name="custUid"
    type="java.lang.Long"
    update="true"
    insert="true"
    access="property"
    column="CUST_UID"
    length="15"
    not-null="true"
    unique="false"
    />
    <property
    name="correspondenceCd"
    type="java.lang.String"
    update="true"
    insert="true"
    access="property"
    column="CORRESPONDENCE_CD"
    length="100"
    not-null="true"
    unique="false"
    />
    <property
    name="signedDt"
    type="date"
    update="true"
    insert="true"
    access="property"
    column="SIGNED_DT"
    length="7"
    not-null="false"
    unique="false"
    />
    <property
    name="signer"
    type="java.lang.String"
    update="true"
    insert="true"
    access="property"
    column="SIGNER"
    length="100"
    not-null="false"
    unique="false"
    />
    <property
    name="userCreated"
    type="java.lang.String"
    update="true"
    insert="true"
    access="property"
    column="USER_CREATED"
    length="30"
    not-null="true"
    unique="false"
    />
    <property
    name="dtCreated"
    type="date"
    update="true"
    insert="true"
    access="property"
    column="DT_CREATED"
    length="7"
    not-null="true"
    unique="false"
    />
    <property
    name="userModified"
    type="java.lang.String"
    update="true"
    insert="true"
    access="property"
    column="USER_MODIFIED"
    length="30"
    not-null="true"
    unique="false"
    />
    <property
    name="dtModified"
    type="date"
    update="true"
    insert="true"
    access="property"
    column="DT_MODIFIED"
    length="7"
    not-null="true"
    unique="false"
    />

    </class>

    </hibernate-mapping>


    Thanks!

    ctang

  • #2
    I found a entry that solves the problem (http://confluence.atlassian.com/disp...ow+Performance). It has nothing to do with spring. It has everything to do with weblogic.

    The following config does the trick.

    <container-descriptor>
    <servlet-reload-check-secs>-1</servlet-reload-check-secs>
    </container-descriptor>

    Thanks!

    ctang

    Comment

    Working...
    X