Timeout for telnet

Guys, I need to check if an application is running on hte servers. It's for close to 10,000 servers. The easiest way is to telnet to the application port and it responds with the version.
That's easy, but some nasty servers do not timeout the telnet session and my script hangs. Any way to set a timeout for telnet?
basically I run:
telnet $host $port 2> /dev/null | grep ^pblocald > /dev/null
One workaround is to use the Net::Telnet perl module which provides a timeout. Any other idea?
Thanks
Vladimir

Hi,
You can set timeout for telnet session ,First change the users primary shell as ksh (default bourne shell) and please set the same TMOUT environment variable in ksh .
TMOUT If set to a value greater than zero, the shell will terminate if a command is not entered within the
prescribed number of seconds after issuing the PS1
prompt. (Note that the shell can be compiled with a
maximum bound for this value which cannot be
exceeded.)
Please see man ksh for further clarifications .
I have another suggestions to do timeout , you can write a shell/perl script which should check telnetd daemon and time ,then use kill -9 for that particular telnetd PID ,and the script can be scheduled in crontab.
Hope this answer your query.
Rgds,
dhana_slash

Similar Messages

  • Shell script for telnet

    I would like some assistance with writing a simple shell script using the telnet command. I would like to simply execute my script and have it telnet to a device, login and perform commands specific to the equipment.
    Once I get past the login I got the rest. I am requesting assistance with establishing the actual telnet session sending the escape character to awake the device, wait for the login, send login, wait for the password send password. etc.. I can then execute the commands needed at this point.
    Thank you,
    Todd Matherne
    [email protected]

    Hi,
    I've got a script for telnet, maybe you'll try this:
    #!/usr/bin/perl
    sub connect
    use Net::Telnet ();
    #testscript for remote login and datatransfair.
    print("IP of Router you wannt to connect to: \n");
    $ip = <STDIN>;
    #gets IP from standardinput.
    open(TAB, ">$ip");
    $tel = new Net::Telnet(Errmode => "return", Timeout => 20);
    #generate telnet object.
    $tel->open($ip);
    #connect to $ip
    $tel->login(Name => "User", Password => "",);
    #login
    $tel->cmd("more off");
    #more off.
    @table=$tel->cmd("ip routes");
    I Hope you can use this
    Cheers
    bolligur

  • LMS3.2 :Why did I recieve an error msg: Insufficient no. of interactive responses(or timeout) for command

    Hello,
    I'm deploying ssh v2 using RME netconfig, LMS 3.2.  It failed in some devices with this message error:
    Deploy command partially failed Primary Login Succeeded / Primary Enable Succeeded Insufficient no. of interactive responses(or timeout) for command: crypto key generate rsa .
    Despite this message I am able to log into ssh devices with are failed. I check the ssh configuration (in cli) in those devices and I'm supprise to see that the ssh config is correctly deployed. So why did I receive an error message in Netconfig job details ?
    Regards,

    Hi Nael,
    In my case the timeout is due to the long length RSA key (2048). The  catalyst 3560 take arround 5 minutes to generate the key. I think that LMS loses the connexion to the device at this moment. Even if I change telnet timeout for 1 hour, the probleme remain the same. But when I change the RSA key length for 1024 there is no fail. What do you think about it ?
    Regards,

  • Setting timeout for all the web test scripts in the solution

    Hello,
    I have around 16 web test scripts (using VSTS 2010 ultimate version) in my project (in a solution). By default the timeout set for each request is 60 sec. I need to increase the timeout to 180 sec. Currently, I am clicking on each request and modifying
    the timeout parameter from the Properties window.
    Is there any common setting for timeout available which would be acting across all the scripts?
    Thanks.

    Hello,
    We only can set Timeouts for a separate request in Visual Studio Web Test. There is no way to set Timeout for all requests in VS IDE. But you can write you own logic code using
    Timeout Property in a web test plugin to set Timeout for all requests in a web test.
    About how to write a web test plugin, please see:
    How to: Create a Web Performance Test Plug-In
    Best regards,
    Amanda Zhu <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

  • Hi I have two questions. I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users? How is the session timeout set? Thanks, YS

     

    <i>I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users?</i>
    Um, there is no such thing as NAS4.1.
    I'm assuming that you mean NAS4.0 (maybe NAS4.0sp1?). If so, then the session timeouts are specified in the session section of the NTV configuration files.
    AFAIK, you can specify session timeouts on a per user basis.

  • Set a timeout for "read from text file"

    I Need to read from a text file on a remote pc and use the read from text file function to do this. It wotks but sometimes this pc is down causing long wait times in my vi.
    Is there a way to set a timeout for the read from text file function, or is there an other solution?
    Thank you

    You could check that the path is valid first before you attempt to read the file.  hen put the file read in a True-False case structure based on the results of the check.  You can use the function "Check if File or Folder Exists"  It checks whether a file or folder exists on disk at a specified path. This VI works with standard files and folders as well as files in LLB files.   The function is found in the File I/O --> Advanced File Functions palette.
    Tom

  • Timeout for content

    Hello
    9iAS with Portal 9.0.2 in Sun Solaris
    I am working with Oracle Reports Builder and Oracle Portal.
    I've saved my reports with JSP extension.
    So, I've made some portlets with these reports into PEOPLE_APP db provider.
    Now, when I run my pages with these portlets, some times (most of times) the following error appears instead of the report:
    Timeout for content=[any_number]
    I've already researched in OTN and Metalink forums, I've changed my zone.properties and http.conf files, but it didn't resolve my problem.
    So, what else I need to do in order to solve my problem? Any other ideas?
    Thanks.
    P.S: We've sent lots of questions with no satisfactory response from Oracle.
    We've noticed that Oracle provided extremely poor support.
    Maybe this isn't a good solution. Maybe there isn't a solution, at least in this way.
    Take a look in some fragments of messages, found in OTN and Metalink forums:
    "I've increased the timeout but that doesn't help.
    It's also very strange that after rebooting the server in Portal 3.0.8/ias1.0.2.1 my pages appeared in 10-20 seconds and now in Portal 3.0.9/ias1.0.2.2 it takes two to four minutes. And this slow performance is only while retrieving the page for the first time. The second time I retrieve a page it's there in a few seconds.
    So, I do not think it has anything to do with the provider's timeout...."
    "But maybe it's the Portal-schema itself which causes this problem. I heard someone saying that he missed indexes after a Portal-upgrade --> maybe this is my problem too, although i didn't have any error-messages in the upgrade-logfiles...."
    "Unfortunately we did not yet solve these timeout problems. Oracle is currently studying several logfiles and traces.
    At first we thought that we had the timeout problems only after starting up the server. But now we noticed that the timeouts are repeated after 5 to 7 days. For some reason it looks as if Portal is refreshing the cache at that moment, but we can not find anywhere a refreshperiod of 120 hours or so..."
    "Having wrestled with these Timeout errors for months with no satisfactory response from Oracle, I came across someone's solution yesterday and, for me, it worked immediately. Please keep in mind before doing this that it is in direct opposition to what the new "Troubleshooting Issues in Oracle9iAS Portal Architecture and Performance (3.0.9.8.2)" whitepaper states....."
    "After many many performance problems and timeouts issues which Oracle provided extremely poor support we finally learned that all of our problems where related to the same things - Oracle has not tuned this product before shipping it. Numerous little bugs and coding errors were a small part of the fixes. The real problem is that all the indexes have subscriber id as the first column which is always set to one and is not used in the majority of querys which makes these indexes useless for performance... (http://metalink.oracle.com/metalink/plsql/ml2_gui.startup)"
    "Sr. Oracle how long do I need to wait for real solutions? (http://metalink.oracle.com/metalink/plsql/ml2_gui.startup)"

    You must have registered some provider for your portlets. Go to adminstration screens of portal. Goto edit provider from there and increase the portlet timeout.
    Also change the time out value in your provider.xml for the corresponding JSPs.

  • Timeouts for Portlets

    I get timeouts for some of my portlets on a Page that I have
    built. I want to know whether increasing the Provider timeout
    will stop this problem and where does it get its default seeting
    from. If it is hard coded does it override the settings from
    zone.properties file.

    thanks candance...but I hardly believe that this is the only spot, since I am getting this weird "timeout for content", do you know what's up with that?

  • Timeout for  "new BufferedReader (new InputStreamReader (System.in));"

    BufferedReader in = new BufferedReader (new InputStreamReader (System.in));
    String message = in.readLine();  The above code waits infinitely until the user enter the data from the command line and presses enter key.
    The following code can provide a timeout to the above waiting (it works fine).
    But is there a SIMPLER WAY to provide timeout for above waiting, something like setSoTimeout(int milliseconds) method in DatagramSocket, Socket and ServerSocket classes*?*
    http://www.coderanch.com/t/232213/threads/java/implement-timeout-threads
    =>
    import java.util.Timer;  
    import java.util.TimerTask;  
    import java.io.*; 
    public class test{  
    private String str = "";  
         TimerTask task = new TimerTask(){  
                 public void run(){  
              if( str.equals("") ){  
                   System.out.println( "you input nothing. exit..." );  
                   System.exit( 0 );  
         public void getInput() throws Exception{  
              Timer timer = new Timer();  
              timer.schedule( task, 10*1000 );  
              System.out.println( "Input a string within 10 seconds: " );  
              BufferedReader in = new BufferedReader(  
                   new InputStreamReader( System.in ) );  
              str = in.readLine();  
              timer.cancel();  
              System.out.println( "you have entered: "+ str );   
         public static void main( String[] args ){  
              try{  
                   (new test()).getInput();
              }catch( Exception e ){  
                   System.out.println( e );  
              System.out.println( "main exit..." );  
    }

    No. System.in doesn't have a timeout API. Sockets do.

  • Timeout for content after installation

    Hi all!
    Running w2000, 9i DB and 9ias, I finally managed to install the portal. Took a while.
    ( used the step-by-step guide ). But now after the installation, I get the following errors when opening the /pls/portal30 homepage.
    Portal Community Portlet Timed Out
    Error: Timeout for content=15032
    Error: Timeout for content=15032
    Error: Timeout for content=15032
    Error: Timeout for content=15482
    Upon clicking the Login link, I get the following error:
    You cannot login because there is no configuration information stored in the enabler configuration table. (WWC-41439)
    I have tried to change the JServ settings to solve the timeout problem, but it doesn't help.
    my current zone.properties settings are:
    init.timeout=240000
    servlet.page.initArgs=stall=60
    servlet.page.initArgs=requesttime=240
    Have anyone seen this before?
    all help greatly appreciated.
    JServ log output are appended below.
    regards
    Rune Engseth
    [28/05/2002 14:17:37:108 CEST] page/DEBUG: active=34 Starting servlet, millis=1022588257108
    [28/05/2002 14:17:37:108 CEST] page/DEBUG: active=34 Starting Retrieval of Meta-Data time=1022588257108
    [28/05/2002 14:17:37:108 CEST] page/DEBUG: active=34 mTimeOut=10000000 for page
    [28/05/2002 14:17:37:108 CEST] page/DEBUG: active=26 username is null
    [28/05/2002 14:17:37:108 CEST] page/DEBUG: active=26 content-fetcher7 starting on page
    [28/05/2002 14:17:37:199 CEST] page/DEBUG: active=26 Query String=_mode=3
    [28/05/2002 14:17:54:504 CEST] page/DEBUG: active=34 After connecting to Page Meta, millis=17396
    [28/05/2002 14:17:54:754 CEST] page/DEBUG: active=26 content-fetcher7 Finished working on page, size=null, millis=17555, id=null
    [28/05/2002 14:17:54:754 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher7
    [28/05/2002 14:17:54:754 CEST] page/DEBUG: active=34 Finishing servlet, millis=17646
    [28/05/2002 14:17:55:005 CEST] page/DEBUG: active=34 Starting servlet, millis=1022588275005
    [28/05/2002 14:17:55:005 CEST] page/DEBUG: active=34 Starting Retrieval of Meta-Data time=1022588275005
    [28/05/2002 14:17:55:005 CEST] page/DEBUG: active=34 mTimeOut=10000000 for page
    [28/05/2002 14:17:55:005 CEST] page/DEBUG: active=26 username is null
    [28/05/2002 14:17:55:005 CEST] page/DEBUG: active=26 content-fetcher6 starting on page
    [28/05/2002 14:17:55:005 CEST] page/DEBUG: active=26 Query String=_mode=3
    [28/05/2002 14:17:55:095 CEST] page/DEBUG: active=26 Computed character set from response "x-oracle/portal-page; charset=UTF-8" as "UTF-8"
    [28/05/2002 14:17:55:095 CEST] page/DEBUG: active=26 content-fetcher6 Before reading the data stream page, millis=90
    [28/05/2002 14:17:55:105 CEST] page/DEBUG: active=26 content-fetcher6 xxx Characters=3522 page, millis=100
    [28/05/2002 14:17:55:105 CEST] page/DEBUG: active=34 After connecting to Page Meta, millis=100
    [28/05/2002 14:17:55:105 CEST] page/DEBUG: active=34 Processing data 3.0.8
    [28/05/2002 14:17:55:105 CEST] page/DEBUG: active=34 Computed character set from response "x-oracle/portal-page; charset=UTF-8" as "UTF-8"
    [28/05/2002 14:17:55:105 CEST] page/DEBUG: active=34 x-oracle-portal-expires header derives to: Wed, 29 May 2002 21:37:55 GMT
    [28/05/2002 14:17:55:105 CEST] page/DEBUG: active=34 setting up cache output stream subID is 1
    [28/05/2002 14:17:55:185 CEST] page/DEBUG: active=26 content-fetcher6 xxx Characters=5000 page, millis=180
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=26 content-fetcher6 xxx Characters=3924 page, millis=190
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=34 Starting a Page
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=26 content-fetcher6 Finished working on page, size=12446, millis=190, id=null
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher6
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=34 mTimeOut=15000 for 11
    [28/05/2002 14:17:55:195 CEST] page/DEBUG: active=34 Adding portlet to queue 11
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 mTimeOut=15000 for 12
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 Adding portlet to queue 12
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 mTimeOut=15000 for 13
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 Adding portlet to queue 13
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 mTimeOut=15000 for 14
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 Adding portlet to queue 14
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 mTimeOut=15000 for 16
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 Adding portlet to queue 16
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 mTimeOut=15000 for 17
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 Adding portlet to queue 17
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 timeout =15
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 mTimeOut=15000 for 18
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 Adding portlet to queue 18
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=34 http://bekk-RuneE.BEKK.INT:80//pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:17:55:205 CEST] page/DEBUG: active=26 username is PUBLIC
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=26 content-fetcher5 starting on 11
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=26 Query String=_portlet_id=1&_provider_id=807692&_node_id=80769&_reference_path=11_FAVORITES_807692&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=27 username is PUBLIC
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=27 content-fetcher4 starting on 12
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=27 Query String=_portlet_id=2&_provider_id=807696&_node_id=80769&_reference_path=12_COMPORTLET_TECHNEWS_807696&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=28 username is PUBLIC
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=28 content-fetcher3 starting on 13
    [28/05/2002 14:17:55:215 CEST] page/DEBUG: active=28 Query String=_portlet_id=2&_provider_id=807692&_node_id=80769&_reference_path=13_RECENTOBJECTS_807692&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=29 username is PUBLIC
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=29 content-fetcher2 starting on 14
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=29 Query String=_portlet_id=1&_provider_id=807693&_node_id=80769&_reference_path=14_FOREIGNAPPS_807693&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=30 username is PUBLIC
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=30 content-fetcher1 starting on 16
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=30 Query String=_portlet_id=16&_provider_id=807692&_node_id=80769&_reference_path=16_CREATE+PAGES_807692&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=31 username is PUBLIC
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=31 content-fetcher0 starting on 17
    [28/05/2002 14:17:55:225 CEST] page/DEBUG: active=31 Query String=_portlet_id=3&_provider_id=807697&_node_id=80769&_reference_path=17_CREATESITES_807697&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:235 CEST] page/DEBUG: active=32 content-fetcher24Closing cached HTTP connection, host/port changed
    [28/05/2002 14:17:55:235 CEST] page/DEBUG: active=32 username is PUBLIC
    [28/05/2002 14:17:55:235 CEST] page/DEBUG: active=32 content-fetcher24 starting on 18
    [28/05/2002 14:17:55:235 CEST] page/DEBUG: active=32 Query String=_portlet_id=10&_provider_id=807692&_node_id=80769&_reference_path=18_CREATEOBJECTS_807692&_language=us&_mode=1&_back_page_url=null&_page_url=http%3A%2F%2Fbekk-RuneE.BEKK.INT%2Fservlet%2Fpage%3F_pageid%3D1%2C11%26_dad%3Dportal30%26_schema%3DPORTAL30&_has_title_region=1&_has_border=0&_page_type=PORTLETS
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=26 Computed character set from response "text/html; charset=UTF-8" as "UTF-8"
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=26 content-fetcher5 Before reading the data stream 11, millis=591
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=26 content-fetcher5 xxx Characters=1150 11, millis=591
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=26 content-fetcher5 Finished working on 11, size=1150, millis=591, id=null
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher5
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=34 Writing portlet to browser 11
    [28/05/2002 14:17:55:806 CEST] page/DEBUG: active=34 Done Writing 11
    [28/05/2002 14:17:58:269 CEST] page/DEBUG: active=26 Computed character set from response "text/html; charset=UTF-8" as "UTF-8"
    [28/05/2002 14:17:58:269 CEST] page/DEBUG: active=26 content-fetcher24 Before reading the data stream 18, millis=3034
    [28/05/2002 14:17:58:269 CEST] page/DEBUG: active=26 content-fetcher24 xxx Characters=2 18, millis=3034
    [28/05/2002 14:17:58:269 CEST] page/DEBUG: active=26 content-fetcher24 Finished working on 18, size=2, millis=3034, id=null
    [28/05/2002 14:17:58:269 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher24
    [28/05/2002 14:18:10:247 CEST] page/JNI: Exception when trying to connect in 1.
    [28/05/2002 14:18:10:247 CEST] page/DEBUG: active=26 Timeout occurred, label=13 url=http://bekk-RuneE.BEKK.INT/pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:18:10:247 CEST] page/DEBUG: active=26 ContentFetcher InterruptedIOException Caught, Fetcher Timedout name=content-fetcher3
    [28/05/2002 14:18:10:247 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher3
    [28/05/2002 14:18:10:247 CEST] page/JNI: Exception when trying to connect in 1.
    [28/05/2002 14:18:10:247 CEST] page/DEBUG: active=26 Timeout occurred, label=12 url=http://bekk-RuneE.BEKK.INT/pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:18:10:247 CEST] page/DEBUG: active=26 ContentFetcher InterruptedIOException Caught, Fetcher Timedout name=content-fetcher4
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher4
    [28/05/2002 14:18:10:257 CEST] page/JNI: Exception when trying to connect in 1.
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 Timeout occurred, label=16 url=http://bekk-RuneE.BEKK.INT/pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 ContentFetcher InterruptedIOException Caught, Fetcher Timedout name=content-fetcher1
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher1
    [28/05/2002 14:18:10:257 CEST] page/JNI: Exception when trying to connect in 1.
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 Timeout occurred, label=14 url=http://bekk-RuneE.BEKK.INT/pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 ContentFetcher InterruptedIOException Caught, Fetcher Timedout name=content-fetcher2
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher2
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=34 Writing portlet to browser 12
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=34 Done Writing 12
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=34 Writing portlet to browser 13
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=34 Done Writing 13
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=34 Writing portlet to browser 14
    [28/05/2002 14:18:10:257 CEST] page/DEBUG: active=34 Done Writing 14
    [28/05/2002 14:18:10:267 CEST] page/DEBUG: active=34 Writing portlet to browser 16
    [28/05/2002 14:18:10:267 CEST] page/DEBUG: active=34 Done Writing 16
    [28/05/2002 14:18:10:707 CEST] page/JNI: Exception when trying to connect in 1.
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=26 Timeout occurred, label=17 url=http://bekk-RuneE.BEKK.INT/pls/portal30/!PORTAL30.wwpro_app_provider.execute_portlet
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=26 ContentFetcher InterruptedIOException Caught, Fetcher Timedout name=content-fetcher0
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=26 ContentFetcher ready=content-fetcher0
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=34 Writing portlet to browser 17
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=34 Done Writing 17
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=34 Writing portlet to browser 18
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=34 Done Writing 18
    [28/05/2002 14:18:10:707 CEST] page/DEBUG: active=34 Finishing servlet, millis=15702

    I've had the same problem. You can solve it by modifying the timeout-period for the provider. Surf to the portal-homepage- administration- edit provider.

  • Setting timeout for SOAP requests in a webservice client

    I am trying to set the timeout for a synchronous SOAP request sent to a Web Service deployed on weblogic 8.1 SP2. I tried setting timeout thru bindinginfo setTimeout() and also javax.xml.rpc.Stub _setProperty(). Both of them seem to be not working. I set the value to as low as 1 sec but i still donot get a timeout. Other properties/method from these two classes work fine though (like endpointaddress property in javax.xml.rpc.Stub and setVerbose flag to true in BindingInfo).
    Can someone please help.
    Thanks in Advance
    srini

    Our application calls the webservice provided by another company over the internet using the ssl. We use the wsdl url of the webservice on the destination while creating the port. If the destination is not available statement which creates the port blocks for around 4 minutes.
    I think the first network call gets the wsdl from the remote server. Thus we encounter delays before getting the stub created. How can I timeout such a calls.
    try {
    port = (new ServiceName_Impl(remoteWsdlURL)).getServiceNameSoap();
    } catch (IOException e) {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • JCO Timeout for SAP Business Connector 4.7

    Environment :
      Windows 2000, SAP Business Connector (BC) 4.7
    General Description :
      SAP BC is used to invoke BAPI's in the SAP R/3 system.
    Issue :
      Some BAPI's are taking some time to return response depending on user load. Need to provide a timeout for RFC calls invoked by SAP BC using JCO.
      Following is the entry in the rfc trace log file when BC starts up ...
    000000  -
      2005-05-12 11:07:20 EDT
    000001  [B2B-SAP.0011.0001] [JNI-LAYER] RFC.nativeSetTraceLevel()                with rc = RFC_OK   leave, [SUCCESS]
    000002  [B2B-SAP.0002.0022] Log level set to 10
    000003  [B2B-SAP.0002.0025] Registered SAP package trace with core trace
    000004  [B2B-SAP.0002.0014] Starting SAP services
    000005  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.setProperty(jco.jdsr.comp_name, SAP BC server0023 5555)
    000006  [B2B-SAP.0003.0001] Loading native libraries
    000007  [B2B-SAP.0003.0002] JCO version: 2.1.4 (2004-10-20) sapjcorfc 2.1.4 (2004-10-20)
    000008  [B2B-SAP.0003.0004] jRFCLibrary info: 2.1.4 (2004-10-20)(C:\sapbc47\Server\packages\SAP\code\libs\sapjcorfc.dll)
    000009  [B2B-SAP.0003.0003] RfcLibrary version:
    This RFC library belongs to the SAP R/3 Release *** 640,0,41  *** MT-SL
    Versions of SAP internal libraries:
      dptr:    2
      ni  :   37
      cpic:    3
      rfc :    3
    00000A  [B2B-SAP.0011.0001] MiddlewareRFC.setProperty(jco.middleware.wait_for_request_time, 1)
    00000B  [B2B-SAP.0002.0016] Loaded SAP server configurations
    00000C  [B2B-SAP.0002.0015] SAP services started
    00000D  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Client.setAbapDebug(false), current state false
    00000E  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Client.setTrace(true), current state false
    00000F  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Client.setAbapDebug(false), current state false
    000010  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Pool.setMaxWaitTime(30000)
    000011  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Pool.setConnectionTimeout(600000)
    000012  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Pool.setTimeoutCheckPeriod(30000) on pool SERVER-300&USER_RFC&300&EN
    000013  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.PoolManager.addPool:
          name = SERVER-300&USER_RFC&300&EN,
          connection = USER_RFC|300|EN|AS=[11.12.7.296|00|]G0|,
          pool_size = 10,
          max_wait_time = 30000,
          pooled_connection_timeout = 600000,
          timeout_check_period = 30000
    000014  [B2B-SAP.0005.0003] Pool changed: SERVER-300&USER_RFC&300&EN containing 0 connection(s)
    007E72  [B2B-SAP.0006.0001] Executing invoke for ZBAPI_TEST_Service on SERVER-300
    007E73  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Client.execute (ZBAPI_TEST_Service) on handle [2]
    Questions :
       1) Is there a SAP BC configuration parameter for RFC execution timeout ??
       2) Any other way of enforcing the RFC time out ??
       3) If there is a way to set timeout on JCO.Client.execute method ??
    I really appreciate your help !!

    I have tried changes the connection timeout value but if doesnot affect the time RFC. Following is from SAP BC adapter  guide ..
    Delay (minutes) until an unused connection to a SAP
    System is timed out (default: 5)
    I think I need similar setting as that for RFC connection !!

  • Set request timeout for distributed cache

    Hi,
    Coherence provides 3 parameters we can tune for the distributed cache
    tangosol.coherence.distributed.request.timeout      The default client request timeout for distributed cache services
    tangosol.coherence.distributed.task.timeout      The default server execution timeout for distributed cache services
    tangosol.coherence.distributed.task.hung      the default time before a thread is reported as hung by distributed cache services
    It seems these timeout values are used for both system activities (node discovery, data re-balance etc.) and user activities (get, put). We would like to set the request timeout for get/put. But a low threshold like 10 ms sometimes causes the system activities to fail. Is there a way for us to separately set the timeout values? Or even is it possible to setup timeout on individual calls (like get(key, timeout))?
    -thanks

    Hi,
    not necessarily for get and put methods, but for queries, entry-processor and entry-aggregator and invocable agent sending, you can make the sent filter or aggregator or entry-processor or agent implement PriorityTask, which allows you to make QoS expectations known to Coherence. Most or all stock aggregators and entry-processors implement PriorityTask, if I correctly remember.
    For more info, look at the documentation of PriorityTask.
    Best regards,
    Robert

  • How to avoid a timeout for a long-running query

    Hello,
    in my application I insert some rows in a temporary table on submit in a PL/SQL block on the page 1. Then I read these rows from the table on the page 2. Unfortunately the insert takes too long time, because I also have to make some other SELECTs etc in that block. That's why the application hits the Apache timeout for mod_plsql and HTTP error between pages 1 and 2.
    I have found some threads about this topic in this forum. There are some suggestions with meta refresh tag etc. I understand, that I have to implement some kind of processing page between the pages 1 and 2 to show a waiting message etc. But I could not find any ready "cook book" for such implementation.
    Could you please help me?
    Thanks in advance
    Andrej
    P.S. This application don't use AJAX code, so I would prefer a solution without AJAX.

    Hello Chris,
    I am not sure, how to implement this approach. So I would start on the page 1 a job (dbms_scheduler or dbms_job), which would create a temporary table in the background. The application should branch to the page 3 with a message "Please wait...". I have to poll the results of the job and branch to the page 2, when the job is ready and I can select from the created temporary table. So far I like this way very much.
    Could you please give me more details about the page 3 (polling page)? I have the following questions now:
    1. I assume I have to set the meta refresh tag on this page. But in which PL/SQL block can I poll for the running job (on load process?).
    2. How can I branch from this page to another page? If I only use refresh tag, how can I branch to another page only on the special condition (ready flag)?
    Thanks in advance
    Andrej

  • Set TimeOut for SwingWorker

    nice day,
    1/ how can I get real Html size in kB with intention to set as maxValue to ProgressMonitor
    2/ how can I set/synchronize current valueOfDownLoadedHtml in kB to ProgressMonitor throught downloading Html content
    3/ how can I set TimeOut for this Tast, (maybe ... could I use Timer)
    import java.awt.BorderLayout;
    import java.awt.Insets;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.net.URL;
    import java.net.URLConnection;
    import java.nio.charset.Charset;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.ProgressMonitor;
    import javax.swing.SwingWorker;
    public class ProgressMonitorDemo extends JPanel implements ActionListener, PropertyChangeListener {
        private static final long serialVersionUID = 1L;
        private ProgressMonitor progressMonitor;
        private JButton startButton;
        private JTextArea taskOutput;
        private Task task;
        private int sizeIn_kB = 0;
        class Task extends SwingWorker<Void, Void> {
            private String str;
            int progress = 0;
            public Task(String str) {
                this.str = str;
            @Override
            public Void doInBackground() {
                if (str.equals("Loads")) {
                    addBackgroundLoadsData();
                    setProgress(0);
                    while (progress < sizeIn_kB && !isCancelled()) {
                        progress += sizeIn_kB;
                        setProgress(Math.min(progress, sizeIn_kB));
                return null;
            @Override
            public void done() {
                if (str.equals("Loads")) {
                    Toolkit.getDefaultToolkit().beep();
                    startButton.setEnabled(true);
                    progressMonitor.setProgress(0);
        public void addBackgroundLoadsData() {
            InputStream in = null;
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            String charset ="";
            try {
                String UrlString = "http://java.sun.com/";
                URL url = new URL(UrlString);
                URLConnection conn = url.openConnection();
                sizeIn_kB = conn.getContentLength();
                charset = conn.getContentEncoding();
                conn.setRequestProperty("Accept-Charset", charset);
                in = conn.getInputStream();
                int len;
                byte[] buf = new byte[1024];
                while ((len = in.read(buf)) > 0) {
                    bos.write(buf, 0, len);
                in.close();
                String charEncoding = Charset.defaultCharset().name();
                //String fileEncoding = System.getProperty("file.encoding");
                //System.out.println("File Encoding: " + fileEncoding);
                //System.out.println("Char Encoding: " + charEncoding);
                //System.out.println("Char Encoding: " + Charset.availableCharsets());
                charEncoding = "cp1250";
                String groupImport = new String(bos.toByteArray(), charEncoding);
                conn = null;
            } catch (IOException ioException) {
                ioException.printStackTrace();
                JOptionPane.showMessageDialog(null, ioException.getMessage(), "Htlm error", JOptionPane.ERROR_MESSAGE);
            } catch (StringIndexOutOfBoundsException ioException) {
                ioException.printStackTrace();
                JOptionPane.showMessageDialog(null, ioException.getMessage(), "InputStream error", JOptionPane.ERROR_MESSAGE);
        public ProgressMonitorDemo() {
            super(new BorderLayout());
            startButton = new JButton("Start");
            startButton.setActionCommand("start");
            startButton.addActionListener(this);
            taskOutput = new JTextArea(5, 20);
            taskOutput.setMargin(new Insets(5, 5, 5, 5));
            taskOutput.setEditable(false);
            add(startButton, BorderLayout.PAGE_START);
            add(new JScrollPane(taskOutput), BorderLayout.CENTER);
            setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
        @Override
        public void actionPerformed(ActionEvent evt) {
            progressMonitor = new ProgressMonitor(ProgressMonitorDemo.this, "Running a Long Task", "", 0, 100);
            progressMonitor.setProgress(0);
            task = new Task("Loads");
            task.addPropertyChangeListener(this);
            task.execute();
            startButton.setEnabled(false);
        @Override
        public void propertyChange(PropertyChangeEvent evt) {
            if ("progress" == null ? evt.getPropertyName() == null : "progress".equals(evt.getPropertyName())) {
                int progress = (Integer) evt.getNewValue();
                progressMonitor.setProgress(progress);
                String message = String.format("Completed %d%%.\n", progress);
                progressMonitor.setNote(message);
                taskOutput.append(message);
                if (progressMonitor.isCanceled() || task.isDone()) {
                    Toolkit.getDefaultToolkit().beep();
                    if (progressMonitor.isCanceled()) {
                        task.cancel(true);
                        taskOutput.append("Task canceled.\n");
                    } else {
                        taskOutput.append("Task completed.\n");
                    startButton.setEnabled(true);
        private static void createAndShowGUI() {
            JFrame frame = new JFrame("ProgressMonitorDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JComponent newContentPane = new ProgressMonitorDemo();
            newContentPane.setOpaque(true);
            frame.setContentPane(newContentPane);
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    See the session-descriptor element of weblogic.xml deployment descriptor:
    http://download.oracle.com/docs/cd/E21764_01/web.1111/e13712/weblogic_xml.htm#i1071981

Maybe you are looking for

  • External VGA Projector Screen Blue when MacBook Pro Connected

    I love using my laptop for Powerpoint and Keynote presentations at work. I used to have a Powerbook 1.5GHz 15" and now have a MacBook Pro 2.2GHz 15". With some external VGA projectors, after connecting the MacBook Pro, everything works great. I turn

  • Finding out a status of PO

    Hello guys, We have a tricky situation. When we cancel the PO in the custom tables, then again when we pick up the PO it is coming as cancelled. Should we update any master table with the status? Kindly guide me.

  • Spawning a template works in Acrobat, not in Reader

    Hi - I have created a form that has a template.  Originally I wanted to have a new page spawned when the enter key was pressed in one of the text fields at the bottom of the page.  But I wasn't having any luck getting that to work, so I ended up addi

  • Mail doesn't copy and paste

    Another problem I have discovered, probably also thanks to Safari 4 is: I select a piece of text in a Mail message, click Copy, and then open any text editor on desktop and click Paste, but nothing happens. Do you have any idea? Riklar

  • I cannot install reader 10.1.3 on Mac OS Lion

    When trying to update Adobe Reader to version 10.1.3 on my MacBook Pro running OS Lion, the installation runds forever, with the remaining installation time infreasing from 1 minute, over 11, 16, 32 minutes and so on... Anybody else with similar prob