Fast CGI

I need a little help with a problem regarding Fast CGI. I'm not sure if this the right forum but I have to start somewhere :)
I received the following problem description from a developer. If, in fact, this is a Solaris problem, we'd have to move the software to a Linux platform. Is there any one out there who could help us with that problem?
Cheers
-- Andreas
Hi Andreas,
I think this is what we ended up thinking the problem might be around. It has been awhile since I dealt with this problem so I can't remember the specifics about which method it was in.
http://www.fastcgi.com/om_archive/mail-archive/0803.html
  Hey guys, have you ever looked closely at the locking mechanism used by
fastcgi? We haven't been able to find the previous bug we were debugging,
because this new problem keeps happening. :/ We set USE_LOCKING and such
since Solaris can't have multiple simultanious accept() calls. The fastcgi
processes sometimes hang. On the lastest crash, I loaded each process in
the debugger to see where it was at. The dumps are below. Notice that 2 of
them are in accept() at once, and the rest are correctly in the
AcquireLock() blocked state. The AcquireLock() itself seems right.
  Hmm. Here's a question, in the FCGI.xs file there is:
static int
FCGI_Accept(void)
    if(!acceptCalled) {
         * First call to FCGI_Accept.  Is application running
         * as FastCGI or as CGI?
        isCGI = FCGX_IsCGI();
        acceptCalled = TRUE;
    } else if(isCGI) {
  In FCGX_IsCGI(void) from fcgiapp.c we have:
     * Perform an accept() on the file descriptor.  If this is not a
     * listener socket we will get an error.  Typically this will be
     * ENOTSOCK but it differs from platform to platform.
    fcgiSocket = accept(FCGI_LISTENSOCK_FILENO, (struct sockaddr *)
&fcgiSa.un,
                        &fcgiClilen);
  Notice however there is no locking done around this accept() call. None
of the locked up scripts where on this line number at the time I did the
dumps, but maybe it's possible it was in accept() here, one of the other
processes got the lock and called accept(), then this one finally exited.
Perhaps when you call Solaris accept() multiple times the first one works
and the rest hang... I don't know. ;) And, of course, how 4 seperate
processes could get to accept() in FCGX_Accept itself is a mystery since
they all have to call AcquireLock() first. And I'm told Solaris should work
for multiple accept()s anyways. :/
  Anyways, should there be an AcquireLock/ReleaseLock around the FCGX_IsCGI
accept call? We might try a SysV message queue approach and see how that
works.
-Jonathan
(gdb) where
#0  0xef5f5ff8 in fcntl ()
#1  0xef79abb0 in s_fcntl ()
#2  0xef533ebc in AcquireLock () at fcgiapp.c:2012
#3  0xef534178 in FCGX_Accept (in=0xef545818, out=0xeffffc04, err=0xeffffc00,
    envp=0xeffffbfc) at fcgiapp.c:2206
29947
(gdb) where
#0  0xef5f6280 in _getmsg ()
#1  0xef798d94 in __accept ()
#2  0xef798cc4 in _accept ()
#3  0xef5341c8 in FCGX_Accept (in=0xef545818, out=0xeffffc04, err=0xeffffc00,
    envp=0xeffffbfc) at fcgiapp.c:2224
#4  0xef5346e0 in FCGI_Accept () at FCGI.xs:103
29948
#0  0xef5f6280 in _getmsg ()
#1  0xef7984b8 in _s_is_ok ()
#2  0xef799118 in __accept ()
#3  0xef798cc4 in _accept ()
#4  0xef5341c8 in FCGX_Accept (in=0xef545818, out=0xeffffc0c, err=0xeffffc08,
    envp=0xeffffc04) at fcgiapp.c:2224
#5  0xef5346e0 in FCGI_Accept () at FCGI.xs:103
29949
(gdb) where
#0  0xef5f5ff8 in fcntl ()
#1  0xef79abb0 in s_fcntl ()
#2  0xef533ebc in AcquireLock () at fcgiapp.c:2012
#3  0xef534178 in FCGX_Accept (in=0xef545818, out=0xeffffc0c, err=0xeffffc08,
    envp=0xeffffc04) at fcgiapp.c:2206
#4  0xef5346e0 in FCGI_Accept () at FCGI.xs:103
29951
(gdb) where
#0  0xef5f5ff8 in fcntl ()
#1  0xef79abb0 in s_fcntl ()
#2  0xef533ebc in AcquireLock () at fcgiapp.c:2012
#3  0xef534178 in FCGX_Accept (in=0xef545818, out=0xeffffc0c, err=0xeffffc08,
    envp=0xeffffc04) at fcgiapp.c:2206
#4  0xef5346e0 in FCGI_Accept () at FCGI.xs:103
29952
The symptoms appear when the host process posts a signal to the child request that it dies. After this, the child process appears to spin and burns up 100% of its cpu. We believe the problem is related to Solaris not performing flock locking correctly, but there is also the problem above depending on what version of fcgi we have on the server.

I need a little help with a problem regarding Fast CGI. I'm not sure if this the right forum but I have to start somewhere :)
I received the following problem description from a developer. If, in fact, this is a Solaris problem, we'd have to move the software to a Linux platform. Is there any one out there who could help us with that problem?
Cheers
-- Andreas
Hi Andreas,
I think this is what we ended up thinking the problem might be around. It has been awhile since I dealt with this problem so I can't remember the specifics about which method it was in.
http://www.fastcgi.com/om_archive/mail-archive/0803.html
  Hey guys, have you ever looked closely at the locking mechanism used by
fastcgi? We haven't been able to find the previous bug we were debugging,
because this new problem keeps happening. :/ We set USE_LOCKING and such
since Solaris can't have multiple simultanious accept() calls. The fastcgi
processes sometimes hang. On the lastest crash, I loaded each process in
the debugger to see where it was at. The dumps are below. Notice that 2 of
them are in accept() at once, and the rest are correctly in the
AcquireLock() blocked state. The AcquireLock() itself seems right.
  Hmm. Here's a question, in the FCGI.xs file there is:
static int
FCGI_Accept(void)
    if(!acceptCalled) {
         * First call to FCGI_Accept.  Is application running
         * as FastCGI or as CGI?
        isCGI = FCGX_IsCGI();
        acceptCalled = TRUE;
    } else if(isCGI) {
  In FCGX_IsCGI(void) from fcgiapp.c we have:
     * Perform an accept() on the file descriptor.  If this is not a
     * listener socket we will get an error.  Typically this will be
     * ENOTSOCK but it differs from platform to platform.
    fcgiSocket = accept(FCGI_LISTENSOCK_FILENO, (struct sockaddr *)
&fcgiSa.un,
                        &fcgiClilen);
  Notice however there is no locking done around this accept() call. None
of the locked up scripts where on this line number at the time I did the
dumps, but maybe it's possible it was in accept() here, one of the other
processes got the lock and called accept(), then this one finally exited.
Perhaps when you call Solaris accept() multiple times the first one works
and the rest hang... I don't know. ;) And, of course, how 4 seperate
processes could get to accept() in FCGX_Accept itself is a mystery since
they all have to call AcquireLock() first. And I'm told Solaris should work
for multiple accept()s anyways. :/
  Anyways, should there be an AcquireLock/ReleaseLock around the FCGX_IsCGI
accept call? We might try a SysV message queue approach and see how that
works.
-Jonathan
(gdb) where
#0  0xef5f5ff8 in fcntl ()
#1  0xef79abb0 in s_fcntl ()
#2  0xef533ebc in AcquireLock () at fcgiapp.c:2012
#3  0xef534178 in FCGX_Accept (in=0xef545818, out=0xeffffc04, err=0xeffffc00,
    envp=0xeffffbfc) at fcgiapp.c:2206
29947
(gdb) where
#0  0xef5f6280 in _getmsg ()
#1  0xef798d94 in __accept ()
#2  0xef798cc4 in _accept ()
#3  0xef5341c8 in FCGX_Accept (in=0xef545818, out=0xeffffc04, err=0xeffffc00,
    envp=0xeffffbfc) at fcgiapp.c:2224
#4  0xef5346e0 in FCGI_Accept () at FCGI.xs:103
29948
#0  0xef5f6280 in _getmsg ()
#1  0xef7984b8 in _s_is_ok ()
#2  0xef799118 in __accept ()
#3  0xef798cc4 in _accept ()
#4  0xef5341c8 in FCGX_Accept (in=0xef545818, out=0xeffffc0c, err=0xeffffc08,
    envp=0xeffffc04) at fcgiapp.c:2224
#5  0xef5346e0 in FCGI_Accept () at FCGI.xs:103
29949
(gdb) where
#0  0xef5f5ff8 in fcntl ()
#1  0xef79abb0 in s_fcntl ()
#2  0xef533ebc in AcquireLock () at fcgiapp.c:2012
#3  0xef534178 in FCGX_Accept (in=0xef545818, out=0xeffffc0c, err=0xeffffc08,
    envp=0xeffffc04) at fcgiapp.c:2206
#4  0xef5346e0 in FCGI_Accept () at FCGI.xs:103
29951
(gdb) where
#0  0xef5f5ff8 in fcntl ()
#1  0xef79abb0 in s_fcntl ()
#2  0xef533ebc in AcquireLock () at fcgiapp.c:2012
#3  0xef534178 in FCGX_Accept (in=0xef545818, out=0xeffffc0c, err=0xeffffc08,
    envp=0xeffffc04) at fcgiapp.c:2206
#4  0xef5346e0 in FCGI_Accept () at FCGI.xs:103
29952
The symptoms appear when the host process posts a signal to the child request that it dies. After this, the child process appears to spin and burns up 100% of its cpu. We believe the problem is related to Solaris not performing flock locking correctly, but there is also the problem above depending on what version of fcgi we have on the server.

Similar Messages

  • Mono Fast CGI server as asp-engine for Sun JWS

    The FastCGI Mono Server (see http://www.mono-project.com/FastCGI) gives a possibility to use Mono as engine for ASP based application. Detailed instructions are available for the following servers:
    * Abyss Web Server
    * Cherokee HTTP Server
    * Lighttpd
    * Nginx
    Does anybody attempt to use FastCGI Mono Server with Sun JWS? Which distinctive features, how to configure, etc?

    Hi
    We will look into this and post on the progress in next couple of days

  • Post data to cgi script via Java

    What I'm trying to do may seem somewhat confusing (probably not to you pros ;) so let me know if I need to clarify anything:
    I have a Java program that processes a transaction. When this transaction is complete I need to post certain data back to our UNIX System. The only way I can talk to this UNIX system is by using a third party software which is a fast-cgi program. I could use a straight HTML form post but it makes some of my pages do wierd things, and often kicks me off my pages to the URL I need to post to.
    This is an example of the format of the URL that I would normally have as the form action:
    http://www.mywebsite.com/my-bin/myfastcgi?pib.transaction=MYTRAN&cda.text=324234!1!_!System_ok!
    Notes: The ! are just delimeters, The cda.text field is what the UNIX box is waiting to accept, the pib.transaction is telling my UNIX box what I'm trying to do
    So I want to try to accomplish this with Java. I have tried the following:
    URL url = "http://www.mywebsite.com"
    URLConnection conn = url.openConnection();
    urlConnection.setDoInput(true);
    urlConnection.setDoOutput(false);
    urlConnection.setRequestProperty("content-type", "application/x-www-form-urlencoded");
    urlConnection.setRequestProperty("method", "POST");
    String post = "/my-bin/myfastcgi?pib.transaction=MYTRAN&324234!1!_!System_ok!"
    DataOutputStream dos = new DataOutputStream(conn.getOutputStream());
    dos.writeBytes(post);
    dos.flush();
    dos.close();I have also tried the url = "http://www.mywebsite.com/my-bin/myfastcgi" and the post = ?pib.transaction=MYTRAN&324234!1!_!System_ok!"
    What is happening is that the system gets hung up or I get a IOException, and needless to say doesn't update the UNIX system. Can anyone help me understand how to make this work (if it is at all possible??)
    Thanks in advance.

    A little more information for anyone willing to look into this. I added in some echo printing and a stack trace. It seems that my connectin is timing out on the getOutputStream(). This is pretty urgent so I really appreciate some help - if I had duke dollars I would award them - but not exactly sure how to earn them :( ... This is whats happening:
    Start
    URL created: http://test.parkingticketpayment.com
    Connection opened
    DoOutput = true ... method = Post
    Bad io.
    java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:426)
    at java.net.Socket.connect(Socket.java:376)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:303)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:264)
    at sun.net.www.http.HttpClient.New(HttpClient.java:336)
    at sun.net.www.http.HttpClient.New(HttpClient.java:317)
    at sun.net.www.http.HttpClient.New(HttpClient.java:312)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:481)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:472)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:528)
    at testPWDONE.main(testPWDONE.java:26)

  • View PHP Files in Expressions 4

    I downloaded PHP 5.5.8 and have been unable to view a PHP file in Expression Web 4. The Microsoft server open and all I get is a blank screen. I have opened the Site from the Site Menu, I setup the PHP.ini file as shown in the PHP.ini production file. I
    as unable to find a cg-php.exe file in the php download but I did find on online. The PHP.ini and cgi-php.exe are in the same directory as all of the web files. When I download the files to my website and run them they work fine. Can anyone give me some direction
    on how to make this work?

    Hi Jeff,
    If you are still interested to set up PHP, I had the similar to yourself and succeeded.  Basically, ignore the zip folder options and download the msi installer and make sure to install 'other web server' when given the option.
    MSI INSTALLER
    Following advice on here (thanks to Kathy, https://social.msdn.microsoft.com/Forums/expression/en-US/5ef17622-9147-4264-aee4-a40ed310a417/install-php?forum=web), I downloaded the installation
    file from  http://windows.php.net/download/, file: php-5.3.29-nts-Win32-VC9-x86.msi.  I then executed that file and installed it to C:\Programs\PHP\php5.3.29\
    An important note, when installing the msi it asked me which web server I wanted to set up.  Either  IIS Fast CGI or Other CGI.  I chose the former, but the message said FASTCGI is not installed on the current version,  so I chose 'other'.
    This is clearly the important step to ensure the php-cgi.exe file is installed correctly.
    I then launched EW and opened the index.php file and clicked F12 to preview it.  You should see the following alert:
    | Select a valid version of PHP in the Application Options dialog.
    | Application options | More Info
    | OK
    Go to Tools > Application Options > General Tab and that is where you can browse to 'Path to PHP executible file for previewing PHP pages', which is the php-cgi.exe you have just installed.
    Your testing server should be set up.
    Good luck.
    Andy

  • Security on Acrobat PRO 9 - What direction to take?

    Any help pointing me in the right direction would be appreciated. I will gladly do my own research but choices and vendors seem endless.
    I am setting up a company intranet server that is Windows 7  IIS 7.5, PHP5 Fast CGI, and MySQL 5.It will be essentially a server for with a CSS menu to go to pdf portfolio files used as Addition and Revision logs for manufacturing procedures etc.
    With that set up, good bad or indifferent here is what I would like to do.
    I would like to set security at the file level on pdf's only on the server. There will be company manuals and procedures that any one can access. There will be files that only supervisors can access. A record log of accessed supervisor files should be generated. These files should be updated by some type of batch process when superviors get hired or leave. Files will use portfolio feature as addition and revision log.
    1) I can buy add on features/utilites if necessary but not monthly fees. WWW.protectedPDF.com was perfect but not suitable and over-priced. I have 500 files and 20 supervisors, not 20 files and 500 readers.
    2) Generic one password for files will not help much, as access logs are desired. Certificates looked like they are intended for email recipients not user. PLEASE correct me if I am mistaken.
    3) Perhaps I should just have login script for sever access but  IIS 7.5 would need a walk through set up example.
    Drew

    Interesting, I work at company with 60MM in annual sales, so Adobe is limiting themselves by making functional software out of reach to many. I can not in good conscious recommend it. I was hopefully steering this in other direction as to what add-on utlities might be acceptable. I am trialing built in digital ID's now.
    It seems that truely useful software is always just out of reach.

  • Error in the isqlplus.conf file?

    Is there anyone else out there that gets this message? Each time I try to run my HTTP server to access iSQL*Plus, I get:
    "Syntax error on line 92 of c:/oracle/ora92/sqlplus/admin/isqlplus.conf: FastCgiServer: redefinition of a previously defined FastCGI server "c:/oracle/ora92/bin/isqlplus"
    Does anyone know how I can adjust this config file, or otherwise fix this problem?
    Other than that, the Enterprise edition is up and running, including the SQL Plus app.
    Any advice is greatly appreciated.
    Thanks!
    Eric

    Hi Alison,
    Thanks for the response! Unfortunately, I tried both of these, and neither seems to apply:
    http://otn.oracle.com/support/tech/sql_plus/htdocs/runtime.html#isql_duplicate_entriesAt first, I thought this would be the problem, since I installed twice, but there was only one oracle_apache.conf file in the directory...
    http://otn.oracle.com/support/tech/sql_plus/htdocs/runtime.html#isql_mutex_errorThis one actually talks about a different config file. I'm getting errors on my isqlplus.conf file. It's saying that there's an error b/c of "FastCGIServer: Redefinition of a previously defined Fast CGI Server" Here's what the config file looks like on that (in relevant part):
    # Maps all virtual paths beginning with "/isqlplus*" to the iSQL*Plus
    # FastCGI application
    <IfModule mod_alias.c>
    ScriptAliasMatch ^/isqlplus(.*) C:\oracle\ora92\bin\isqlplus
    ScriptAliasMatch ^/isqlplusdba(.*) C:\oracle\ora92\bin\isqlplus
    <Directory "C:\oracle\ora92\bin">
    AllowOverride None
    Options FollowSymLinks
    Order deny,allow
    Allow from all
    </Directory>
    </IfModule>
    The other reference to the FastCGI server is here: <<#
    # Setup the iSQL*Plus FastCGI application.
    <IfModule mod_fastcgi.c>
    FastCgiServer C:\oracle\ora92\bin\isqlplus -port 8228 -initial-env iSQLPlusNumberOfThreads=20 -initial-env iSQLPlusTimeOutInterval=30 -initial-env iSQLPlusLogLevel=off -initial-env iSQLPlusAllowUserEntMap=none -idle-timeout 3600
    </IfModule>
    Not sure about where else this FastCGI Server might be called, but it looks like one of the definitions is typographically different from the other. Could this be the issue?
    Eric

  • Apex 3.0.1 first logon doesn't work...

    Hi!
    I appear to have the usual problem but so far none of the usual solutions had worked.
    I installed it, filled in dads.conf, can log on using sqlplus with username and password copy/pasted straight out of the dads.conf but get access forbidden in the browser.
    Here's what I did:
    Tried to install the http server from the companion CD. Gave me error during install. Installed oracle client first, http server second, worked. ORACLE_HOME and environment reset to the apex directory.
    (Do I really need the client for the http server install to work?)
    Now I get the server start page, with the fast cgi demonstration.
    The thing that nags me is that NLS_LANG is set to western iso something.
    My linux system runs on that but I guess the http server should run on american.america.al32utf8, right?
    I set it in the environment, bounced the server, no avail.
    I found it hardcoded in the opmnctl to the western iso stuff. Changed it there, bounced the server, fast cgi demo still shows wrong setting.
    apex and the database both run on linux, but on different servers.
    The database is 10.2.0.3.0, the apex install on the database went fine.
    The error message when acccessing http://oracle8.ecad:7777/pls/apex is
    You don't have permission to access /pls/apex/apex on this server.
    The error line in the log is
    [Fri Sep 21 14:51:58 2007] [error] [client 192.168.36.41] [ecid: 1190379118:127.0.0.1:16031:0:9,0] mod_plsql: /pls/apex/apex HTTP-403 ORA-1017
    Any ideas?
    Lots of Greetings!
    Volker

    Hi!
    it gave me de_DE.UTF-8.
    unset LANG and opmnctl stopproc ...; opmnctl startproc didn't make any difference.
    This is the output of the fastcgi demo of the http server:
    FCGI_ROLE=RESPONDER
    DOCUMENT_ROOT=/vol1/oracle/oracle/product/10.2.0/apex/Apache/Apache/htdocs
    HTTP_ACCEPT=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7
    HTTP_ACCEPT_ENCODING=gzip,deflate
    HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5
    HTTP_CACHE_CONTROL=no-cache
    HTTP_CONNECTION=keep-alive
    HTTP_HOST=oracle8.ecad:7777
    HTTP_KEEP_ALIVE=300
    HTTP_ORACLE_ECID=1190384430:127.0.0.1:16107:0:1,0
    HTTP_PRAGMA=no-cache
    HTTP_REFERER=http://oracle8.ecad:7777/OHSDemos.htm
    HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
    LD_LIBRARY_PATH=/vol1/oracle/oracle/product/10.2.0/apex/lib:/vol1/oracle/oracle/product/10.2.0/apex/opmn/lib:/vol1/oracle/oracle/product/10.2.0/apex/opmn/lib:/vol1/oracle/oracle/product/10.2.0/apex/lib
    NLS_LANG=GERMAN_GERMANY.WE8ISO8859P1
    ORACLE_HOME=/vol1/oracle/oracle/product/10.2.0/apex
    PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd:/usr/local/bin
    PERL5LIB=/vol1/oracle/oracle/product/10.2.0/apex/perl/lib/5.6.1:/vol1/oracle/oracle/product/10.2.0/apex/perl/lib/site_perl/5.6.1
    REMOTE_ADDR=192.168.36.41
    REMOTE_PORT=1688
    SCRIPT_FILENAME=/vol1/oracle/oracle/product/10.2.0/apex/Apache/Apache/fcgi-bin/echo
    SERVER_ADDR=192.168.58.18
    SERVER_ADMIN=[email protected]
    SERVER_NAME=localhost.localdomain
    SERVER_PORT=7777
    SERVER_SIGNATURE=
    Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at localhost.localdomain Port 7777
    SERVER_SOFTWARE=Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
    TNS_ADMIN=/vol1/oracle/oracle/product/10.2.0/apex/network/admin
    UNIQUE_ID=RvPTLn8AAAEAAD7rau8
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_METHOD=GET
    QUERY_STRING=
    REQUEST_URI=/fcgi-bin/echo
    SCRIPT_NAME=/fcgi-bin/echo

  • FastcgiStub does not raise a new process

    Hi there.
    we have a perl FCGI running with Sun ONE 6.1 sp5 over Solaris10.
    We have a line in obj.conf like this:
    <Object name="fcgi.perl">
    Service fn="responder-fastcgi" app-path="/usr/bin/perl" app-args="/internet/datos/WWW/cgi-bin/loginCGI/loginCGI.pl" app-args="/inter
    net/datos/WWW/cgi-bin/loginCGI" bind-path="localhost:27527" resp-timeout=10 restart-interval=30 min-procs=1 max-procs=10
    </Object>
    We are doing load test against our web app., and we can see that Fastcgistub does not start a new perl process when needed (and of couerse, we fail in process too many request). Instead of that, when our perl dies due to a SIGPIPE signal, we can see this message in fastcgitub.log, repeated a lot of times:
    server bind error
    /usr/bin/perl bound to localhost:27527 is already running
    Could you help us with this issue, please?
    Thanks a lot in advance.
    Best Regards

    In my test setup :
    <Object name="fcgi.perl">
    Service fn="responder-fastcgi" app-path="/opt/csw/bin/perl" app-args="/tmp/one.pl" bind-path="localhost:27527" resp-timeout=10 restart-interval=30 min-procs=2 max-procs=10
    </Object>
    If I overload the CPU using
    $ ab -n 100000 -c 100 http://host:port/fcgiperl/
    I am able to saturate the CPU. Even if I print a sleep statement in while loop
    of /tmp/one.pl then too, I don't get the error you mentioned.
    I however observed that Fastcgistub doesn't create the new processes.
    Can you test the following script in your test environment to see how
    it performs?
    --------------------- /tmp/one.pl -----------------------------
    #!/usr/bin/perl
    use IO::File;
    #use strict;
    use CGI::Fast qw(:standard);
    $COUNTER = 0;
    while (new CGI::Fast) {
    print header;
    print start_html("Fast CGI Rocks");
    print
    h1("Fast CGI Rocks"),
    "Invocation number ",b($COUNTER++),
    " PID ",b($$),".",
    hr;
    print end_html;
    -----------------------------------------------------

  • Old Tomcat VS New installations

    Hi,
    Long time ago I setup Tomcat Server and it was working 100% fine.
    Today I wanted to review JSP and Tomcat server so after stopping the IIS and startup the Tomcat server I entered the URL:
    http://localhost/hello.jsp but I got 404 Error?! and the same thing for my other jsp files I made long time ago.
    I checked the old settings I made long time ago :ClassPath,Path,Java_Home,... every thing looks correct.
    The only possible different I think is that I installed new programs like:
    Java EE 5 SDK (I uninstalled the Java Application server I had before install it)
    Visual Studio 2008
    PHP 5.3.1 vc9 for IIS using Fast CGI extention
    However since every thing I made long time ago looks correct and was working I don't know what to do? I spent 3 hours at least trying to fix it but it is no use.
    Hope that you can help me...

    Garg_Ankit wrote:
    nalkaff wrote:
    I always deploy my applications to folders other than the Root (wwwroot).I only have in the Root two simple PHP pages in a folder and one unimportant asp.net website I may delete it.I think you are playing with too many technologies, which is mixing things up in your mind. wwwroot is related to IIS, so I'm not concerned with that. Tomcat is supposed to run JavaEE, so if you have PHP or asp.net pages in tomcat, you shouldn't expect them to be executed. What I want to know is how are you expecting http://localhost/hello.jsp to return you a page if you don't have any application deployed on ROOT. As you said using the URL http://localhost/ renders the default tomcat welcome page, that means that your application is deployed on some context path (you can put your JSP pages in ROOT directory of tomcat, but I don't know if you have done that). So the URL that you need to use is http://localhost/<context path>/hello.jsp where <context path> would generally be the name of the folder of your application in the webapps folder of tomcat. So if you have a directory structure like $Tomcat_installation_dir/webapps/myapp/hello.jsp, then the URL in the browser would be http://localhost/myapp/hello.jsp ...
    'O' sorry for my silly mistake I was confused between the too roots in my post may be because I didn't drink my tea that night.However as you said the .jsp page has nothing to do with the IIS root.But I found it placed correctly in the Tomcat webapps\Root folder and not inside any folder so the path should be [http://localhost/hello.jsp].
    and [http://localhost/] display the Tomcat Welcome page.
    Other applications I have in that folder (Tomcat Root) are only 4 somple JSP pages since I didn't make any JSP project for my work or such things...
    One of them read from SQL database using JDBC.
    Is there any thing I should check to fix up this problem other than the ClassPath and Java_Home variables?
    As I mentioned the error appears as following:
    HTTP Status 404 - /hello.jsp
    type Status report
    message /hello.jsp
    description The requested resource (/hello.jsp) is not available.
    Apache Tomcat/6.0.10
    About the log file looks not interested for me..It has the following:
    28/12/2009 03:34:48 &#1589; org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    28/12/2009 03:34:48 &#1589; org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    28/12/2009 03:34:48 &#1589; org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeAdded('org.apache.catalina.Registry', ['org.apache.tomcat.util.modeler.Registry@109fd93'|mailto:'org.apache.tomcat.util.modeler.Registry@109fd93'])
    28/12/2009 03:34:48 &#1589; org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeAdded('org.apache.catalina.MBeanServer', ['com.sun.jmx.mbeanserver.JmxMBeanServer@e6ff0d'|mailto:'com.sun.jmx.mbeanserver.JmxMBeanServer@e6ff0d'])
    28/12/2009 03:46:46 &#1589; org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextDestroyed()
    28/12/2009 03:46:46 &#1589; org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextDestroyed()
    28/12/20

  • Php 5 on webserver 7

    Dear All,
    I have tried to configure php on webserver 7 by referring to the following doc
    http://docs.sun.com/source/820-1090/PHPReleaseNotes.html#12
    neither of the fast-cgi nor the NSAPI worked
    ------fast-cgi-----
    [11/Feb/2009:20:42:05] config (18947): for host 10.126.21.5 trying to GET /form.php, handle-processed reports: HTTP2205: The request method is not applicable to the requested resource.
    -----NSAPI--------
    [11/Feb/2009:20:47:12] failure (19227): for host 10.126.21.5 trying to GET /file.php, responder-fastcgi reports: FCGI1010: could not change the working directory of the application process
    [11/Feb/2009:20:47:12] failure (19227): for host 10.126.21.5 trying to GET /file.php, responder-fastcgi reports: FCGI1073: Unable to service the request even after trying 0 times
    what might be the cause?
    Even I looked to this doc
    http://developers.sun.com/webtier/reference/techart/php2.html
    didnt understand waht i should be pointing to in this section
    NameTrans fn="pfx2dir" from="/cgi-bin"
    dir="/export/my/cgi" name="cgi"
    Any directory !! even if it doenst exist?
    Thanks for the help,
    Scotty

    neither of the fast-cgi nor the NSAPI worked Can you share your obj.conf settings ?
    >
    ------fast-cgi-----
    [11/Feb/2009:20:42:05] config (18947): for host 10.126.21.5 trying to GET /form.php, handle-processed reports: HTTP2205: The request method is not applicable to the requested resource.
    One of the reasons could be the missing .php mime type setting within mime.types file.
    -----NSAPI--------
    [11/Feb/2009:20:47:12] failure (19227): for host 10.126.21.5 trying to GET /file.php, responder-fastcgi reports: FCGI1010: could not change the working directory of the application process
    [11/Feb/2009:20:47:12] failure (19227): for host 10.126.21.5 trying to GET /file.php, responder-fastcgi reports: FCGI1073: Unable to service the request even after trying 0 times
    Have you specified "chdir" parameter ? Also check 'Fastcgistub.log' file (will be in Web Server's temp directory) for errors.
    didnt understand waht i should be pointing to in this section
    NameTrans fn="pfx2dir" from="/cgi-bin"
    dir="/export/my/cgi" name="cgi"
    Any directory !! even if it doenst exist?
    No, the directory should exist. Above directive converts URI to physical path.
    e.g., Web Server tries to execute */export/my/cgi/simple.cgi* script when you send request to */cgi-bin/simple.cgi*

  • Apache Web Server - urgent!!

    I recently installed Oracle on Windows XP and the installation was successful.When I was trying to start the Apache Web Server the following error message appears:
    [alert] <5> access is denied:fast CGI:create mutex() failed.
    syntax error on line 92 of d:/oracle/ora90/sqlplus/admin/isqplus.conf: failed to create fast CGI application accept mutex
    and the count down begins and the window automatically closes.
    Can any one please suggest me the solution to this?

    I did not experience this error before, but one workaround I can think about for this issue is to disable isqlplus.conf, this can be achieved by removing isqlplus.conf line from httpd.conf file. By doing this, your apache webserver should be able to startup, but iSQL*Plus will not work. One good thing to do before start up apache server is to run "apachectl configtest" to check syntax before starting Apache, it will sometimes provide some good troubleshoot information.
    GQ
    OCP 8/8i/9i

  • Forms 9i execution

    HI Everybody,
    Could you please help me in the following:
    I have XP with Oracle 9i and Forms 9i. When I build a very simple test form--one non-db block, one text item only--and want to execute it, my Web Browser (IE6) is started and I can wait eternally and nothing happens--the progress bar advances about to the middle and that's it. Note that I have ADSL which should be extremely fast. Where is my fault?
    Thank you very much in advance, kind regards from
    Miklos HERBOLY.

    HI Shay,
    Thank you for your assistance so far. To be quite precise I executed the whole thing again from scratch. The results ar the
    following:
    After a brand new installation of XP Home, when installing Oracle9i Enterprise I noticed that two errors were
    returned--I ignored them both. Then I installed 9i Developer Suite without any problem.
    Starting OC4J I moved to the Startup menu, so it automatically starts when booting the system. However, the following
    two messages are returned:
    Error starting HTTP-Server: Address in use: JVM_Bind
    Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
    Note that when I look at Services, HTTPServer is running.
    Then:
    (1) ALL CONFIG FILES HAVE THEIR ORIGINAL TEXT AS GENERATED
    Forms Builder is started, it goes in the web and generates the following URL:
    http://gksserver:8888/forms90/f90servlet?form=F:\ancsi.fmx&userid=<usr>/<pwd>@<dblink>gks&buffer_records=NO&debug_messages=NO&array=YES&query_only=NO&quiet=NO&RENDER=YES
    The progress bar advances about to 40% and nothing happens. Even the gray rectangle with "Loading Applet..." does not
    come at all.
    Then I execute ipconfig and substitute the current IP address in the URL:
    http://217.225.202.180:8888/forms90/f90servlet?form=F:\ancsi.fmx&userid=<usr>/<pwd>@<dblink>&buffer_records=NO&debug_messages=NO&array=YES&query_only=NO&quiet=NO&RENDER=YES
    The same as above.
    (2) IN FORMSWEB.CFG I ADDED THE FOLLOWING SECTION AT THE END:
    [gksapp]
    form=F:\ancsi.fmx
    userid=<usr><pwd><dblink>
    And subsequently modified the URL as follows:
    http://gksserver:8888/forms90/f90servlet?config=gksapp
    Now, as I am using a German Telecom version of the MS browser, it replaces the URL with its own, by appending my URL
    as a query:
    http://brisbane.t-online.de/fast-cgi/tsc?start=0&num=10&context=internet-tab&tpc=themen&mandant=toi&PortalLanguage=de&UserLanguage=de&device=html&dia=adr&ptl=&lang=primary&q=http://gksserver:8888/forms90/f90servlet?config=gksapp
    It does not find anything.
    When I go directly to the MS browser with my config-URL, it displays at most five green marks on the progress bar
    and that's it.
    I do not have any idea about what can go wrong with the whole. Other config files are not affected.
    Please drop a few lines if you have an idea. It is very frustrating that I cannot test even a very simple form
    under 9i--the same has ever worked excellent with 8i.
    By the way, netstat shows up abundant addresses and ports,
    also 8888 in both columns, vice-versa.
    Thank you again, kind regards from
    Miklos HERBOLY.

  • Unable to add php_gd2.dll

    Dear All,
    After uncommenting the php_gd2.dll in the phpi.ini, i got the below error
    info: CORE3261: Crash occurred in NSAPI SAF php5_init
    info: CORE3262: Crash occurred in function zif_nsapi_response_headers from module /sfw/webserver/bin/libphp5.so
    this is solaris 9 and i am running web server 6.1 SP5, any help on this?
    Thanks,
    Scotty

    sun java system web server (formerly known Sun ONE / iPlanet Enterprise Server) requires plugin applications like PHP to be thread safe. Unfortunately, some of the commonly extensions used with PHP 5.x is not thread safe. Hence, you see a crash in Zend PHP NSAPI plugin.
    If you configure PHP as Fast CGI plugin , then you could get around this PHP.
    Please note that with Web Server 7 - Sun's latest and greatest Web Server release provides a PHP add -on
    http://www.sun.com/download/products.xml?id=45c26bc9
    provides a PHP 5.2.0 with FastCGI plugin support.
    Will that be useful ?

  • Block Oracle HTTP Server Demonstration

    How do I disable or block the Oracle HTTP fast CGI demonstration. It reveals too many details about my server, like internal IP, server names, etc.
    It is found on the HTTP Server tab#2.
    Thanks
    Kevin

    Thanks for the correct lead.
    Can disable the echo.exe by renaming or deletion.
    In addition, you can modify the demonstration web page and remove the link to echo.exe.
    The web page with the echo link in the apache folder system is:
    OHDemos.htm

  • MaxDB + mpm worker + PHP as FastCGI

    Hi,
    We are running MaxDB 7.6 on Centos 5.3 with apache mpm-prefork, we have compiled PHP from source with MaxDB-php-ext. and everything is working but !
    we have to recompile apache with mpm-worker now and i would like to know if anyone has complied Maxdb-php-ext. with Fast CGi and this whole stuff?
    thanks in advans.
    Edited by: slac ware on Jul 1, 2009 6:14 PM

    It's very likely that nobody uses MaxDB with PHP that way. I just discovered a bug in the PHP module which I'm wondering nobody else found it before. So I guess almost nobody uses PHP with MaxDB these days. The same here, 99,9% accessing MaxDB is Java.
    But, did you try what you wanted to do and it didn't work or did you just want to hear how it works for others?
    Regards,
    Simon

Maybe you are looking for

  • How to parse through special characters

    Hello all, Iam trying to parse an xml file whihc contains data like this, with the SAX api . "Pernod accentue son rattrapage sur des spéculations" but my xml parser gets screwed up and cant get the whole data.ANy ideas how i can avoid this situtation

  • SCM collaborative portal not working via Internet BUT wo

    I am working on Collaborate planning in APO (SCM) - sharing SCM planning books over internet so that collaborators (customers) can access our data. I enabled all the required services using SICF and published services using SE80. Portal works correct

  • Report for consumption against production

    Dear all ; Is there any standard report to see the consumption report monthwise .can I use MB59 with movement type 261? Thanking you ; Regards; Joydeep Mukherjee

  • JavaFX SDK - no tab widget?

    The previous JavaFX releases had somehow the possibility to use a tabbedPane and the tab widget. I don't see them back in the list of javafx.ext.swing widgets of the newly released javaFX SDK. Will they be added in a future SDK release or if not, doe

  • SAP Discovery System

    Hi Gurus, We will be implementing Discovery System in the upcoming days. Since I'm new to this application, can anybody enlighten me how this system works and how could this affect our current SAP Landscape. I will also be needing Hardware/OS require