Jump to content
uniGUI Discussion Forums
SMARAM

Isapi Application is falling when Total Threads Reach Max

Recommended Posts

Hi, I'm having trouble with my isapi application that is going down when total/active threads reaches it's max like the attached image.

 

What does make it go high and freeze application?

 

Is there any documentation how to configure the ThreadPoolSize?

 

All the components that I'm using in the project;

 

- ADOComponents

- SQL Server 2005/2008 (depends the customer)

- Report Tools QuickReport 5.05.1 and Rave Reports 10.0

- TClientDataSet

 

 

 

post-6268-0-62281300-1530829659_thumb.png

Share this post


Link to post
Share on other sites

Hi,

 

First of all, you have enabled the AsyncMode. Is there any reason for this? Normally, it is disabled by default.

Reason for above behavior is that some of your requests just don't complete. They freeze so the calling thread never returns. You must find the reason for this.

Share this post


Link to post
Share on other sites
Report Tools QuickReport 5.05.1 and Rave Reports 10.0

 

 

Is there any chance that thread number grows when you request reports?

Share this post


Link to post
Share on other sites

Hi,

 

First of all, you have enabled the AsyncMode. Is there any reason for this? Normally, it is disabled by default.

Reason for above behavior is that some of your requests just don't complete. They freeze so the calling thread never returns. You must find the reason for this.

 

The Async mode is for printing QuickReport. Is there a way to identify threads that never returns? I made a test trying to print a report with too many rows and it never returns.

 

Is there any chance that thread number grows when you request reports?

 

Yes. I made a test and confirmed that when you have one quickreport generating, the thread grows and never get down.

Share this post


Link to post
Share on other sites

In this case, there is something in your report which is not compatible with uniGUI and ISAPI.

You can try to change your pool's identity first. Change it from ApplicationPoolIndentity to LocalSystem.

Share this post


Link to post
Share on other sites

In this case, there is something in your report which is not compatible with uniGUI and ISAPI.

You can try to change your pool's identity first. Change it from ApplicationPoolIndentity to LocalSystem.

 

If a change to LocalSystem, it returns the error when I try to print my report: "there is no default printer currently selected"

Share this post


Link to post
Share on other sites

 

Ok, the error about the default printer is gone but now it doesn't throw an exception on client but on server, it pops this error:

"An unhandled win32 exception occurred in w3wp.exe [4408].

The Just-In-Time debugger was launched without necessary security permissions. To debug this process, the Just-In-Time debugger must be run as an Administrator. Would you like to debug this process?"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×