Re: Making the most of 8G of RAM

2008-03-17 Thread brien colwell
If one of your webapps could use a faster database or filesystem, you might look into using a ramdisk. Any program that needs 8gb of RAM to run seems suspect. Large amounts of data should be abstracted through the filesystem and dealt with as files. On Mon, Mar 17, 2008 at 4:21 PM, Caldarale, C

Re: [Fwd: Re: running servlet from java]

2008-02-21 Thread brien colwell
Maybe you can describe what you're trying to achieve. "Running from java" is a little vague to me ... 2008/2/21 Goran Jambrović <[EMAIL PROTECTED]>: > Hi, > > i tried your advice, and it didn't help. > > Regards, > Goran > > Hi, > You can change your eclipse setting to invoke a web browser i

Re: Using mod_jk with other Java programs

2008-02-18 Thread brien colwell
mod_rewrite can also do proxy forwarding, where the web server will route the forwarded resource to the client. Use the P flag. On Feb 18, 2008 2:35 PM, Daniel Winterstein <[EMAIL PROTECTED]> wrote: > Is it possible to use mod_jk to get the Apache2 web server to forward > web requests to programs

Re: Performance of Native library

2008-02-14 Thread brien colwell
Yes, sorry for the phrasing. On Thu, Feb 14, 2008 at 5:26 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: brien colwell [mailto:[EMAIL PROTECTED] > > Subject: Re: Performance of Native library > > > > > You have to use native to use

Re: Remote ip Address

2008-02-14 Thread brien colwell
I think what you're asking with setRemoteAddr() also doesn't make sense from a protocol point of view ... what is a response without a request? On Thu, Feb 14, 2008 at 3:10 PM, Christopher Schultz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ksh, > > > [EMAIL

Re: Performance of Native library

2008-02-14 Thread brien colwell
hi Jacob, You have to use native to use non blocking sockets & the Comet architecture, which lets the number of active HTTP connections scale up beyond what blocking sockets would allow. I use the native lib for Comet ... Maybe this is a start ... http://www.mail-archive.com/users@tomcat.apache.o

Re: managing user uploads best practices

2008-02-10 Thread brien colwell
On the topic of DB versus filesystem for media, I prefer storing media in a filesystem and meta data in a DB. The advantages of storing large binary files outside of the DB are * Reduce contention in the DB -- it's doing so much * You have more control with a filesystem where your data goes -- e.g

Re: NIO connector

2008-02-01 Thread brien colwell
Rockin. I'll check it out when it's released. Thanks On Feb 1, 2008 7:17 AM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > 6.0.16 will have this fixed I believe > > > Filip > > brien colwell wrote: > > hi Filip, > > > > Still no success

Re: NIO connector

2008-01-31 Thread brien colwell
tical. Best regards, Brien On Jan 31, 2008 5:50 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > Connector c = > e.createConnector((String)null,8080,"org.apache.coyote.http11.Http11NioProtocol"); > > > Filip > > brien colwell wrote: >

Re: NIO connector

2008-01-31 Thread brien colwell
AIL PROTECTED]> wrote: > use > > public Connector createConnector(String address, int port,String protocol) > > set org.apache.coyote.http11.Http11NioProtocol as the protocol value > > should work > Filip > > > brien colwell wrote: > > hi all -- > > > &

embedded: avoiding web.xml

2008-01-31 Thread brien colwell
hi again, With Tomcat embedded, I'm still using a web.xml and servlet root on the filesystem. Is there a way to programmatically set up a new servlet and servlet mapping? Basically I'd like to get rid of the dependence of having external resources ... I'd like to do everything programatically. Th

NIO connector

2008-01-31 Thread brien colwell
hi all -- I'm trying to hook the NIO connector to an engine, but I'm lost in how to do this. I'm using Tomcat "embedded", so I have an Engine instance, from which I have a Session object. Can anyone take me from there? Thanks! -