Results 1 to 2 of 2

Thread: icebox server shut down automatically in "session activation" model

  1. #1
    lshmouse is offline Registered User
    Name: Liu Shaohui
    Organization: oak pacific
    Project: antispam
    Join Date
    Mar 2010
    Posts
    2

    icebox server shut down automatically in "session activation" model

    Hi:
    I tested the icebox server in "session activation" model and found the server will shut down automatically after it have been idle for a little time. I did not set the property Ice.ServerIdleTime . The ice manual says the dafault value of this property is zero which means the server will not shut down automatically . In spite of I set the
    property Ice.ServerIdleTime to zero , the server shut down automatically also. I donot know why. thx!

    Code:
    <icegrid>
    	<server-template id="Printer">
    		<parameter name="Index" />
    		<parameter name="DefaultHost" />
    		<parameter name="Priority" default="0" />
    
    		<icebox id="Printer${Index}" user="safe" exe="java" activation="session" activation-timeout="20" deactivation-timeout="20" >
    			<env>CLASSPATH=${PHOME}/lib/*</env>
    			<option>-server</option>
    			<option>IceBox.Server</option>
    			<property name="IceBox.UseSharedCommunicator.printer${Index}"
    				value="1" />
    			<property name="Ice.ServerIdleTime" value="0"/>
    			<property name="Ice.ThreadPool.Server.Size" value="100" />
    			<property name="Ice.ThreadPool.Server.SizeMax" value="50000" />
    			<property name="Ice.ThreadPool.Server.StackSize" value="262144" />
    
    			<service name="Printer${Index}" entry="PrinterService">
    				<adapter id="Printer${Index}" name="Printer${Index}" endpoints="tcp -h ${DefaultHost}" >
    					<allocatable identity="Printer" type="Printer" property="Identity"/>
    				</adapter>
    			</service>
    		</icebox>
    	</server-template>
    </icegrid>
    The PrinterService is just a simple service which print hello in server side.
    Last edited by lshmouse; 04-13-2010 at 07:01 AM.

  2. #2
    lshmouse is offline Registered User
    Name: Liu Shaohui
    Organization: oak pacific
    Project: antispam
    Join Date
    Mar 2010
    Posts
    2

    Got it

    IceGrid reclaims it when the client’s session terminates or expires due to inactivity.
    But I don,t know where to use session activation.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 03-14-2011, 05:08 PM
  2. Replies: 4
    Last Post: 01-31-2011, 07:32 PM
  3. Replies: 1
    Last Post: 01-28-2009, 06:15 AM
  4. Replies: 4
    Last Post: 10-26-2006, 11:23 AM
  5. Replies: 1
    Last Post: 06-06-2005, 10:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •