Solved

Scripts timing out

Posted on 2014-02-05
8
163 Views
Last Modified: 2014-02-06
Hello,

Our client is seeing timing out of asp pages in the application.  This is intermittent.  The hosting company says that the script is updating a lot of tables (about 10) and that is why even if the update query is simple (such as updating last name) it is timing out.  We are on shared servers and they said going on to a dedicated server or a  virtual private server will not solve the problem.

Our business requirement is to update those many servers and that cannot be changed.  Does anyone have any suggestions or solution?

Thanks,
0
Comment
Question by:perlwhite
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 39835772
you can adjust the ScriptTimeOut property of the server object and see if that helps:

<% Server.ScriptTimeout = 999   '-- value is in number of seconds %>
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39835803
You may want to look at the business process too.  There are probably multiple ways to optimize whatever it is you are doing.

For one, I would start by making all my inserts a function of a stored procedure.  Then it is on the db server.  Especially if table 2 can't be updated until table 1 is.  

You can also use ajax to update the tables as well.

What is it that requires updating 10 tables at a time though?  That sounds like a bit much.

Which hosting service are you using?
0
 

Author Comment

by:perlwhite
ID: 39835838
Big Monty,

Is there any global place when I can put this line of code, there are about 100 asp pages?
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 33

Expert Comment

by:Big Monty
ID: 39835857
if you have an include file that's common to each page and is near the top of the page, you can pop it in there.

You can also set it directly in IIS if you have full access to it.
0
 

Author Comment

by:perlwhite
ID: 39836547
Big  Monty,

I put the timeout code in a include file.  And when I test the application, getting a record for first search is fine but when I go back and select another person to search it takes significantly large amount of time to search.  There is nothing getting updated, just selecting a record!

How do check where is the problem now?

The host company said log file will not show database problems.
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 39836570
does running the same query directly in the database take a long time as well?
0
 

Author Comment

by:perlwhite
ID: 39836712
No it does not take a long time.  It is quick.
0
 

Author Comment

by:perlwhite
ID: 39839036
I am getting this error- Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[MySQL][ODBC 3.51 Driver][mysqld-5.0.96-log]Query execution was interrupted

After doing some research, it tells me that if we run 32 bit classic ASP application on 64 bit machine (Windows 7), it will fail.

http://www.a2zmenu.com/Blogs/Miscellaneous/Microsoft-OLE-DB-Provider-for-ODBC-Drivers-error-80004005.aspx

Is this something that our hosting company will have to do?
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error in query expression 3 57
Select record with the most recent date 14 72
Writing lines of code from a form output in script within a results page 2 47
Two decimal 5 44
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question