Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Virtual Server

Vista - Virtualisation

Reply
 
Old 09-02-2009   #1 (permalink)
billion.mohammed


 
 

Virtualisation

Hi,

We recently Virtualised our servers. Basically we had two physical
servers and now we have a vertual server.
We run a couple of Web applications on the VM server. We had
everything running fine for a while - until we got a timeout problem
with a search function. Basically a page does a search call to SQL
server and that kind of tookl more than the default SQL Command
Execution timeout which is set to 30 secs my MS.

To resolve that problem, we set CommandTimeout property of the
SQLCommand object as well as the
SQLConnection object - to 0 - this makes the timeout to be unlimited.

The code snippet below shows what we did:
Note: that the CommandTimeout is set at both the SQLConnection and
SQLCommand levels !!

....

aConnection = New SqlConnection(tmpString &
";Database=myDB;Trusted_Connection=True;Connection Timeout = 0;")
mCommand = New SqlCommand(strStoredProcedureName, aConnection)
mCommand.CommandType = CommandType.StoredProcedure
mCommand.CommandTimeout = 0
....

The question is: can this stuff up the Virtual Server setup in anyway?

We are not sure what is causing the problem - but we are having a
network blockage and memory degradation which is of course resulting
in Client Connection being everlasting... i.e frozen screen.

We are suspecting the above code snippet.

Will someone please respond ASAP ---

Thanks.

My System SpecsSystem Spec
Old 09-02-2009   #2 (permalink)
Roger Johnson, MCITP (SA, EA)


 
 

RE: Virtualisation

I don't suspect that this code is causing you problems, but have you tried
removing the code to see if the problem improves?

Also, you mention that you have converted the physical servers to virtual.
If running Virtual Server and you fail to install the Virtual Server
Additions or Integration Components if running Hyper-V, this can lead to less
than desirable functionality and performance.

"billion.mohammed@newsgroup" wrote:
Quote:

> Hi,
>
> We recently Virtualised our servers. Basically we had two physical
> servers and now we have a vertual server.
> We run a couple of Web applications on the VM server. We had
> everything running fine for a while - until we got a timeout problem
> with a search function. Basically a page does a search call to SQL
> server and that kind of tookl more than the default SQL Command
> Execution timeout which is set to 30 secs my MS.
>
> To resolve that problem, we set CommandTimeout property of the
> SQLCommand object as well as the
> SQLConnection object - to 0 - this makes the timeout to be unlimited.
>
> The code snippet below shows what we did:
> Note: that the CommandTimeout is set at both the SQLConnection and
> SQLCommand levels !!
>
> ....
>
> aConnection = New SqlConnection(tmpString &
> ";Database=myDB;Trusted_Connection=True;Connection Timeout = 0;")
> mCommand = New SqlCommand(strStoredProcedureName, aConnection)
> mCommand.CommandType = CommandType.StoredProcedure
> mCommand.CommandTimeout = 0
> ....
>
> The question is: can this stuff up the Virtual Server setup in anyway?
>
> We are not sure what is causing the problem - but we are having a
> network blockage and memory degradation which is of course resulting
> in Client Connection being everlasting... i.e frozen screen.
>
> We are suspecting the above code snippet.
>
> Will someone please respond ASAP ---
>
> Thanks.
>
My System SpecsSystem Spec
Old 09-02-2009   #3 (permalink)
Bill Grant


 
 

Re: Virtualisation



<billion.mohammed@newsgroup> wrote in message
news:763803f0-b9f9-4d51-86d8-97d96747b995@newsgroup
Quote:

> Hi,
>
> We recently Virtualised our servers. Basically we had two physical
> servers and now we have a vertual server.
> We run a couple of Web applications on the VM server. We had
> everything running fine for a while - until we got a timeout problem
> with a search function. Basically a page does a search call to SQL
> server and that kind of tookl more than the default SQL Command
> Execution timeout which is set to 30 secs my MS.
>
> To resolve that problem, we set CommandTimeout property of the
> SQLCommand object as well as the
> SQLConnection object - to 0 - this makes the timeout to be unlimited.
>
> The code snippet below shows what we did:
> Note: that the CommandTimeout is set at both the SQLConnection and
> SQLCommand levels !!
>
> ...
>
> aConnection = New SqlConnection(tmpString &
> ";Database=myDB;Trusted_Connection=True;Connection Timeout = 0;")
> mCommand = New SqlCommand(strStoredProcedureName, aConnection)
> mCommand.CommandType = CommandType.StoredProcedure
> mCommand.CommandTimeout = 0
> ...
>
> The question is: can this stuff up the Virtual Server setup in anyway?
>
> We are not sure what is causing the problem - but we are having a
> network blockage and memory degradation which is of course resulting
> in Client Connection being everlasting... i.e frozen screen.
>
> We are suspecting the above code snippet.
>
> Will someone please respond ASAP ---
>
> Thanks.

Where is the SQL server? How is it connected to the vm? What
virtualization product are you using?


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Why is Hardware Assisted Virtualisation now mandatory? Virtual PC
Windows 7 virtualisation Virtual PC
Virtualisation problem Vista General
[FR] Forums dédiés à la virtualisation Virtual Server
Program Files Virtualisation Vista account administration


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46