users@glassfish.java.net

Re: Glassfish (v3) and FastCGI (PHP)

From: Barry van Someren <goltharnl_at_gmail.com>
Date: Tue, 23 Jun 2009 07:05:28 +0200

Hi,

I've done some testing on a Nehalem server and it has been running
stable under load for several hours.
It does seem like you need to increase the http-threadpool because it
starts queuing on the FastCGI deamon.

Please note, the code is not authored by me, but I'm looking to make
small changes to it (like being able to use several FastCGI connectors
and failing over between them)
I'm also going to need something better than Apache Benchmark (ab) to
do the load testing. Any suggestions?

Thank you.

On Mon, Jun 22, 2009 at 15:35, Jeanfrancois
Arcand<Jeanfrancois.Arcand_at_sun.com> wrote:
> Salut,
>
> Barry van Someren wrote:
>>
>> Hi,
>>
>> I vaguely recall that CGI support was going to be part of Glassfish
>> V3, but what about FastCGI?
>
> Right. we only support CGI right now.
>
>
>> FastCGI does not fork a process under your application, but it runs a
>> simple standalone server for added security and scalability (over CGI)
>> It also allows running as a separate user.. etc.
>>
>> So I've taken a look at JFastCgi and found it to work pretty much out
>> of the box on Glassfish V3.
>> It runs Wordpress fine (with the exception that the default Windows
>> CGI version only opens 1 worker by the looks of it)
>> I'm going to run some more tests this week under Linux / Mac OS X if I
>> can get a decent FastCGI version of PHP going.
>>
>> Maybe I can shoehorn the code into a module of sorts?
>
> That would be nice. In order to include your donation, make sure you sign:
>
> http://www.sun.com/software/opensource/contributor_agreement.jsp
>
> I need to check if we can integrate product under the BSD licenses, but that
> should work.
>
>> Right now it's just a servlet, pretty much like CGIServlet.
>
> That would make it quite easy to integrate and enable. using the
> default-web.xml.
>
> Thanks!
>
> -- jeanfrancois
>
>
>>
>> Regards,
>>
>> Barry
>>
>> You can find JFastCGI here: http://sourceforge.net/projects/jfastcgi
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>



-- 
Barry van Someren
---------------------------------------
LinkedIn: http://www.linkedin.com/in/barryvansomeren
Skype: BvsomerenSprout
Blog: http://blog.bvansomeren.com
KvK: 27317624
irc: BarryNL @ FreeNode