Read timed out During sonar execution

8 messages Options
Embed this post
Permalink
gauravthakur () Read timed out During sonar execution
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hi All,

 

Recently i`ve stated getting read timed out errors while trying to execute sonar.

I`m running sonar v 1.10.1, Sonar server is installed on a separate machine and the DB also resides on the same machine.

I`m running mvn sonar:sonar command remotely on the root pom of the project, it has 4 sub modules, but previously I have been able to

successfully execute much bigger projects with greater number of sub modules.

The read timed out occurs for the second sub module.

Is it possible to specify the time out values for sonar remote execution?

I tried providing options

          <sonar.host.connect.timeout.miliseconds>600000</sonar.host.connect.timeout.miliseconds>

          <sonar.host.read.timeout.miliseconds>3600000</sonar.host.read.timeout.miliseconds>

In the sonar profile as specified in maven setting.xml but couldn`t solve the problem?

Even the debug mode doesn`t shows that the above time out values are recognized by sonar.

Please provide me pointers as to how can this problem be solved?

 

Thanks & Regards

Gaurav Thakur

 

Simon Brandhof () Re: Read timed out During sonar execution
Reply Threaded More More options
Print post
Permalink
Hi Gaurav,

I suppose that you're talking about timeouts on HTTP connections, but not on database ?
The 2 parameters you mentioned are still not implemented (see SONAR-701). I'll try to apply the patch in release 1.12. In order to improve server performance, did you try to activate the Java -server mode and to increase the maximum Java heap size (see conf/wrapper.conf) ?

Regards
Simon


gauravthakur () RE: Read timed out During sonar execution
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hi Simon,

 

Thanks For Your Reply,

Yes, i`m talking about HTTP time outs.

It might quite basic questions  but,

Can you please tell me how do I activate the Java –server mode?

And I fail to understand how will increasing java heap size contribute to reducing time outs?

 

Thanks & Regards

Gaurav Thakur

 

 

From: Simon Brandhof [mailto:[hidden email]]
Sent: Thursday, November 05, 2009 3:28 PM
To: [hidden email]
Subject: Re: [sonar-dev] Read timed out During sonar execution

 

Hi Gaurav,

I suppose that you're talking about timeouts on HTTP connections, but not on database ?
The 2 parameters you mentioned are still not implemented (see SONAR-701). I'll try to apply the patch in release 1.12. In order to improve server performance, did you try to activate the Java -server mode and to increase the maximum Java heap size (see conf/wrapper.conf) ?

Regards
Simon

Simon Brandhof () Re: Read timed out During sonar execution
Reply Threaded More More options
Print post
Permalink
 

Can you please tell me how do I activate the Java –server mode?

Edit conf/wrapper.conf and uncomment the line :
wrapper.java.additional.3=-server

 

And I fail to understand how will increasing java heap size contribute to reducing time outs?

Indeed you're right. I answered too quickly ;o)
gauravthakur () RE: Read timed out During sonar execution
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hi Simon,

 

I did the changes as you described below.

I`m still getting read time out error for a project which contains axis2-webservices project as one of the modules.

Can you give me some pointers on how to resolve this?

 

Thanks & Regards

Gaurav Thakur

 

From: Simon Brandhof [mailto:[hidden email]]
Sent: Thursday, November 05, 2009 4:41 PM
To: [hidden email]
Subject: Re: [sonar-dev] Read timed out During sonar execution

 

 

Can you please tell me how do I activate the Java –server mode?

Edit conf/wrapper.conf and uncomment the line :
wrapper.java.additional.3=-server

 

And I fail to understand how will increasing java heap size contribute to reducing time outs?

Indeed you're right. I answered too quickly ;o)

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
Olivier Gaudin-2 () Re: Read timed out During sonar execution
Reply Threaded More More options
Print post
Permalink
Hello Gaurav,

What database do you use ? Derby ? Is it already loaded with lots of data from previous analysis and / or other projects ?

Olivier



On Wed, Nov 11, 2009 at 2:36 PM, Gaurav Thakur <[hidden email]> wrote:

Hi Simon,

 

I did the changes as you described below.

I`m still getting read time out error for a project which contains axis2-webservices project as one of the modules.

Can you give me some pointers on how to resolve this?

 

Thanks & Regards

Gaurav Thakur

 

From: Simon Brandhof [mailto:[hidden email]]
Sent: Thursday, November 05, 2009 4:41 PM


To: [hidden email]
Subject: Re: [sonar-dev] Read timed out During sonar execution

 

 

Can you please tell me how do I activate the Java –server mode?

Edit conf/wrapper.conf and uncomment the line :
wrapper.java.additional.3=-server

 

And I fail to understand how will increasing java heap size contribute to reducing time outs?

Indeed you're right. I answered too quickly ;o)

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

gauravthakur () RE: Read timed out During sonar execution
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hi Olivier,

 

I`m using MySQL, it has around 20 projects with submodules for which sonar is being run in a continuous basis.

The time out occurs for the second project. I`m able to run projects alone.

 

I have one more question, Lets say I have a root pom A with modules A1,A2,A3.

I run sonar on the A, i.e. the root pom and there after I delete the project from dashboard.

Now if I try to run sonar on A2, i.e. one of the child modules I get a return more elements error, looking at the stack trace it looks like the

Project dependencies from previous run of root pom A are still in the DB and thus gives an exception when trying to run the child.

 

My concern is shouldn`t the DB details also get deleted when I delete a project?

 

Thanks & Regards

Gaurav Thakur

 

From: Olivier Gaudin [mailto:[hidden email]]
Sent: Wednesday, November 11, 2009 11:36 PM
To: [hidden email]
Subject: Re: [sonar-dev] Read timed out During sonar execution

 

Hello Gaurav,

What database do you use ? Derby ? Is it already loaded with lots of data from previous analysis and / or other projects ?

Olivier


On Wed, Nov 11, 2009 at 2:36 PM, Gaurav Thakur <[hidden email]> wrote:

Hi Simon,

 

I did the changes as you described below.

I`m still getting read time out error for a project which contains axis2-webservices project as one of the modules.

Can you give me some pointers on how to resolve this?

 

Thanks & Regards

Gaurav Thakur

 

From: Simon Brandhof [mailto:[hidden email]]
Sent: Thursday, November 05, 2009 4:41 PM


To: [hidden email]
Subject: Re: [sonar-dev] Read timed out During sonar execution

 

 

Can you please tell me how do I activate the Java –server mode?

Edit conf/wrapper.conf and uncomment the line :
wrapper.java.additional.3=-server

 

And I fail to understand how will increasing java heap size contribute to reducing time outs?

Indeed you're right. I answered too quickly ;o)

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

 

Olivier Gaudin-2 () Re: Read timed out During sonar execution
Reply Threaded More More options
Print post
Permalink
Hello Gaurav,

Indeed this is correct and this issue is fixed in Sonar 1.11.

Olivier


On Thu, Nov 12, 2009 at 7:14 AM, Gaurav Thakur <[hidden email]> wrote:

Hi Olivier,

 

I`m using MySQL, it has around 20 projects with submodules for which sonar is being run in a continuous basis.

The time out occurs for the second project. I`m able to run projects alone.

 

I have one more question, Lets say I have a root pom A with modules A1,A2,A3.

I run sonar on the A, i.e. the root pom and there after I delete the project from dashboard.

Now if I try to run sonar on A2, i.e. one of the child modules I get a return more elements error, looking at the stack trace it looks like the

Project dependencies from previous run of root pom A are still in the DB and thus gives an exception when trying to run the child.

 

My concern is shouldn`t the DB details also get deleted when I delete a project?

 

Thanks & Regards

Gaurav Thakur

 

From: Olivier Gaudin [mailto:[hidden email]]
Sent: Wednesday, November 11, 2009 11:36 PM


To: [hidden email]
Subject: Re: [sonar-dev] Read timed out During sonar execution

 

Hello Gaurav,

What database do you use ? Derby ? Is it already loaded with lots of data from previous analysis and / or other projects ?

Olivier


On Wed, Nov 11, 2009 at 2:36 PM, Gaurav Thakur <[hidden email]> wrote:

Hi Simon,

 

I did the changes as you described below.

I`m still getting read time out error for a project which contains axis2-webservices project as one of the modules.

Can you give me some pointers on how to resolve this?

 

Thanks & Regards

Gaurav Thakur

 

From: Simon Brandhof [mailto:[hidden email]]
Sent: Thursday, November 05, 2009 4:41 PM


To: [hidden email]
Subject: Re: [sonar-dev] Read timed out During sonar execution

 

 

Can you please tell me how do I activate the Java –server mode?

Edit conf/wrapper.conf and uncomment the line :
wrapper.java.additional.3=-server

 

And I fail to understand how will increasing java heap size contribute to reducing time outs?

Indeed you're right. I answered too quickly ;o)

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***