10 Replies Latest reply on Apr 10, 2013 5:45 AM by Michael Pellaton

    Time Out

    Michael Pellaton Newbie

      Hallo Zusammen

      Ich bin ganz neu im JBOSS "Business" und habe keine Ahnung über den eigentlichen Aufbau und die Steuerung eines JBOSS Servers.

       

      Ich weiss nicht mal ob ich hier im richtigen Bereich bin. :-)

       

      Ich wurde mal so rasch ins kalte Wasser geschmissen und muss einen bereits installierten JBOSS Server hosten bzw. warten. (Es ist ein JBOSS 5.1.0.GA Server)

       

      Nun habe ich das Problem, dass bei einer Aktion in dem Programm immer ein TimeOut erzeugt wird. Die Aktion ist echt riesig und dauert locker mal 5 - 10 Minuten bis sie fertig ausgeführt wurde.

       

      Ich habe durch Internet Research den Transaction TimeOut und den Session TimeOut gefunden, aber die beiden scheinen keinen Einfluss auf die Routine zu haben. (Ich habe sie verhundertfacht und der TimeOut kommt trotdem schon nach 2 Minuten)

       

      Weiss jemand welches TimeOut hier anspricht? Oder kann mir jemand alle möglichen TimeOuts aufzählen und wo ich die Datei dazu finde?

       

      Ich weiss nicht, ob mir jemand helfen, aber ich wäre echt dankbar. Ohne diese Routine bringt das ganze Programm nichts. :-S

       

       

      Danke

       

      Michael

        • 1. Re: Time Out
          Peter Johnson Master

          If my high school and college German hasn't failed me, I think that what you are saying is that you are experiencing pauses during JBoss AS startup. Here is a prior discussion on that topic (the poster was using 3.2.6 but the general debugging guidelines still apply to 5.1.0):

          https://community.jboss.org/thread/148705

           

          The key is taking a thread dump during the pause, looking at the threads to see what they are doing or waiting on, and fixing that. Most likely, it is an issue with network access.

           

          Also, are you behind a firewall that would prevent internet access on certain ports?

          • 2. Re: Time Out
            Wolf-Dieter Fink Master

            Hallo Michael,

            willkommen im Forum.

             

            But the normal language is English otherwise you may not get a big number of contributors

             

            Two minutes sounds like a Transaction timeout.

            Could you post the original error message and maybe a related warning from the same thread?

            • 3. Re: Time Out
              Michael Pellaton Newbie

              Hello Guys

              So we change to english. I hope I get where I want to. :-)

               

              First off all, I don't think it's a startup problem. The application starts perfectely. The time out occures the moment I start this special method.

               

              Maybe a quick try of explanation what happens in this method:

              As I said on the original post, I didnt' do anything of this program and have also to find out whats happens actually.

               

              In this method a list of products get's generated and the export to excel.

               

              And if there are more then 100 products and it takes more then 2 minutes I get this "request timed out"

               

              The code in the transaction-jboss-beans.xml file is:

               

              <!-- Unit from transactionTimeout: Seconds -->

              <property name="transactionTimeout">300000</property>

              <property name="objectStoreDir">${jboss.server.data.dir}/tx-object-store</property>

              <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>

               

               

              I'm so sorry, but I really don't know where i find the original error message. :-( Ist it in a Log file?

               

              • 4. Re: Time Out
                Wolf-Dieter Fink Master

                Hi Michael,

                 

                my difficulty is to understand where you see the 'request timed out"

                the logfiles can be found in JBOSS/server/your-config-name/log/server.log

                 

                You might look for WARN/ERROR if this problem raise. If it is a JBoss problem then you should see somthing like this.

                But I suppose it is something application related, so it will be interesting where you see the time out message.

                • 5. Re: Time Out
                  Michael Pellaton Newbie

                  Hi Wolf-Dieter

                  I found the log file. There was actually an error message. (It's quite long. )(I can't add a TextFile, can't I?)

                   

                  The main error message is:

                   

                  2013-03-25 07:55:34,254 ERROR [org.granite.messaging.webapp.AMFMessageFilter] (http-0.0.0.0-8080-2) AMF message error
                  ClientAbortException:  java.net.SocketException: Software caused connection abort: socket write error

                   

                  I'm afraid that we're locked on this timeout. -.-

                   

                  michael

                  • 6. Re: Time Out
                    jaikiran pai Master

                    Michael Pellaton wrote:

                     

                    Hi Wolf-Dieter

                    I found the log file. There was actually an error message. (It's quite long. )(I can't add a TextFile, can't I?)

                     

                    Click on the "Use advanced editor" link in the message editor window (top right corner) when you are replying. That will take you to a editor where you can attach files.

                    • 7. Re: Time Out
                      Michael Pellaton Newbie

                      Thanks to jaikiran pai I'm able to add the log-file.

                       

                      It's a tiny peace of hope, but I won't give up. :-)

                      • 8. Re: Time Out
                        Wolf-Dieter Fink Master

                        Look like a network failure, is the behaviour reproducable?

                        What kind of application is running and what action will fail here?

                        • 9. Re: Time Out
                          Michael Pellaton Newbie

                          It's a Flex/Java Application which is running on the server.

                          The behaviour is reproducable. It allways accures when the programm generates an excel export from the sql-database.

                           

                          I allready studied the log file (as good as I could) but the only remark i found was not an errer but a warning:

                           

                               2013-04-09 09:25:20,010 INFO [STDOUT] (http-0.0.0.0-8080-1) File name: Production sheet_all_2013-03-22_v1 Reports Type: Production sheet

                           

                           

                          I don't think that this is the reason for the timeout.

                           

                           

                               2013-04-09 09:25:20,026 WARN [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (http-0.0.0.0-8080-1) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container

                               2013-04-09 09:25:20,026 WARN [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (http-0.0.0.0-8080-1) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container

                          • 10. Re: Time Out
                            Michael Pellaton Newbie

                            Phuuu

                            After checking almost every possible solution I finally found out, that the time out is not a sever problem, but an application problem.

                             

                            It's the Flex part which generates a time out error if the server doesn't respond during 2 minutes. No i just have to find out, how I add a possibility to give all 2 minutes a feedback, so the application knows, that the server is still working.

                             

                            But that I have to find out in an other forum.

                             

                            I want to thank you all for your help!!! It really helped to understand the JBOSS Server a lot better.