RE: SEDA-users digest, Vol 1 #110 - 2 msgs

Tim Walker <[email protected]> Wed, 10 Sep 2003 07:34:13 -0700
Newsgroups gmane.comp.java.seda.user
Message-ID <[email protected]>
Thank you Quartz! Will investigate. 

--
Tim 



-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Tuesday, September 09, 2003 9:33 PM
To: [email protected]
Subject: SEDA-users digest, Vol 1 #110 - 2 msgs

Send SEDA-users mailing list submissions to
	[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/seda-users
or, via email, send a message with subject or body 'help' to
	[email protected]

You can reach the person managing the list at
	[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of SEDA-users digest..."


Today's Topics:

   1. Re: Seda/NIO and the Idle Loop (Quartz)
   2. what is that "under.mark(100);" in SandStormConfig ?? (Quartz)

--__--__--

Message: 1
Date: Mon, 8 Sep 2003 08:10:28 -0700 (PDT)
From: Quartz <[email protected]>
Subject: Re: [SEDA-users] Seda/NIO and the Idle Loop
To: [email protected]

It's polling... (!)
Sorry to state the obvious, but you just found that tomcat has its own SelectorProvider, and that
you are not using sun's original ServerSocketChannel selector.

I'm not surprised that tomcat's selector implementation (behind
org.apache.ajp.tomcat4.Ajp13Processor.run) is doing more backflips and consumes more cpu than you
expected.

Polling is a poor choice to circumvent blocking calls and to emulate events.
Maybe you want to pool less frequently by increasing the aSocket stage timeout to much higher
value.

I see, in aSocketConst:

  /** Time in ms to sleep waiting for select */
  public static final int SELECT_TIMEOUT = 1000;

  /** Time in ms to sleep waiting on event queue */
  public static final int EVENT_QUEUE_TIMEOUT = 1000;

used in aSocketThreadManager$aSocketThread.run()
Maybe you want to externalize these to the SandStormConfig and try longer values.



--- Tim Walker <[email protected]> wrote:
> like 8%) a fair amount is in java.nio and sandstorm.core as shown below. What the heck is it
> doing, when it's
> doing nothing? My config file follows signature. Any thoughts, very much appreciated. All the
> best!
>  
>   21.7% - 284251 ms - 5 inv. org.apache.ajp.tomcat4.Ajp13Processor.run
>      16.5% - 216083 ms - 202 inv. java.nio.channels.Selector.select
>          16.5% - 216083 ms - 202 hot spot inv.
> seda.sandStorm.lib.aSocket.nio.NIOSelectSource.doPoll
>              16.5% - 216083 ms - 202 hot spot inv.
> seda.sandStorm.lib.aSocket.nio.NIOSelectSource.blocking_dequeue
>                  16.5% - 216083 ms - 202 hot spot inv.
> seda.sandStorm.lib.aSocket.aSocketThreadManager$aSocketThread.run


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


--__--__--

Message: 2
Date: Tue, 9 Sep 2003 13:19:24 -0700 (PDT)
From: Quartz <[email protected]>
To: [email protected]
Subject: [SEDA-users] what is that "under.mark(100);" in SandStormConfig ??

Hi,
I'm trying to fix some things in sandstorm config, particularly the include directive.
(I want to allow clobering and layering of config files under certain circumstances).
But what is that mark at "100"??!!!! It makes no sense!

Thanks.

SandStormConfig$directiveReader.read(), around line 910:


	if (!inComment && (c == '<')) {
	  under.mark(100);
	  if (under.read() == '!') {
	    // Process special directive; read until '>'

            [........ more code ...............]

	  } else {
	    // Got a '<' with no following '!'
	    under.reset();
	    return c;
	  }
	} else {
	  // Got something other than '<'
	  return c; 
	}


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



--__--__--

_______________________________________________
SEDA-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/seda-users


End of SEDA-users Digest


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf