You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by George <su...@yahoo.co.jp> on 2004/06/10 13:06:01 UTC

Struts parameter setting

Hello!
I have a question about Struts.

Our system evironment is as followings.

1.WWW server
MS-Windows2000 Server(5.00.2195 ServicePack4)、
  With IIS5 and JK2 connector (isapi_redirector2.dll)
2.AP server
  MS-Windows2000 Server(5.00.2195 ServicePack4)、
  Tomcat5.0.24
3.DB server
   MS−WindowsNT4
   SQLServer7

Configuration of JK2 connector in server.xml on Tomcat is
as followings.
    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port
8009 -->
    <!-- <Connector port="8009" 
               enableLookups="false" redirectPort="8443"
debug="0"
               connectionTimeout="2000" protocol="AJP/1.3"
/> -->
    <Connector 
        maxThreads="200" 
        minSpareThreads="25" 
        maxSpareThreads="25"
        bufferSize="10240"
        connectionTimeout="20000"
        socketBuffer="10240"
        maxKeepAliveRequests="50"
        acceptCount="60000" 
        connectionLinger="-1" 
        connectionUploadTimeout="0" 
        debug="9" 
        port="8009" 
        protocol="AJP/1.3" 
       
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"

        redirectPort="8443" 
        tcpNoDelay="false">
    </Connector>

No tunning has done for SQL Server7

Our application issues "Update" instruction to SQL server
thurough
JDBC(Type4) by using Struts.
When I describe struts-config.xml as followings, and
execute stress
test(loop test), the application give us no response at
100 times 
execution.

  <!-- ========== Data Source Configuration
===============================
-->
  <data-sources>
    <!-- for JTDS -->
    <data-source key="GenDatasource">
      <set-property property="autoCommit"
                       value="false"/>
      <set-property property="description"
                       value="Genesis detasource"/>
      <set-property property="driverClass"
                      
value="net.sourceforge.jtds.jdbc.Driver"/>
      <set-property property="maxCount"
                       value="100"/>
      <set-property property="minCount"
                       value="2"/>
      <set-property property="password"
                       value="*********"/>
      <set-property property="url"
 
value="jdbc:jtds:sqlserver://xxx.xxx.xxx.xxx:1433/genesis;TDS=7.0;charset=MS
932"/>
      <set-property property="user"
                       value="testuser"/>
    </data-source>

However Tomcat and SQL server are working properly even in
this situation.
(Just respond me nothing from application.)

So I tried to following modification to struts-config.xml
as followings.
      Original : <set-property property="maxCount"
value="100"/>
      After modification:   <set-property
property="maxCount" value="-1"/>

Then try stress test again, THE SYSTEM KEEPS ON RUNNING
PROPERLY.

<Question>
We have set "maxCount" parameter value to "-1".
Is this correct usage?
We could not find any documentation for this "maxCount".
Is there anyone who can teach me the spec. of parameter
"maxCount" ?

Sorry for long message.
Thank you.

George

__________________________________________________
Do You Yahoo!?
http://bb.yahoo.co.jp/


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Struts parameter setting

Posted by George <su...@yahoo.co.jp>.
I would like to ask this question again.

Please tell me how to use "maxCount" value in
struts-config.xml.

Am I correct if I set "maxCount=-1"?
Our system is running properly when the value is -1.

George

__________________________________________________
Do You Yahoo!?
http://bb.yahoo.co.jp/


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org