Jump to content


Photo

Isapi Application is falling when Total Threads Reach Max

isapi threads

  • Please log in to reply
8 replies to this topic

#1 SMARAM

SMARAM

    Member

  • uniGUI Subscriber
  • PipPip
  • 16 posts

Posted 05 July 2018 - 10:36 PM

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

 

 

 

Attached Files


  • 0

#2 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 10426 posts

Posted 06 July 2018 - 12:06 PM

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.


  • 0

#3 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 10426 posts

Posted 06 July 2018 - 12:37 PM

Report Tools QuickReport 5.05.1 and Rave Reports 10.0

 

 

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


  • 0

#4 SMARAM

SMARAM

    Member

  • uniGUI Subscriber
  • PipPip
  • 16 posts

Posted 06 July 2018 - 01:40 PM

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.


  • 0

#5 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 10426 posts

Posted 07 July 2018 - 08:44 AM

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.


  • 0

#6 SMARAM

SMARAM

    Member

  • uniGUI Subscriber
  • PipPip
  • 16 posts

Posted 07 July 2018 - 01:31 PM

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"


  • 0

#7 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 10426 posts

Posted 07 July 2018 - 01:53 PM

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

 

This may help:

https://stackoverflo...ected-exception


  • 0

#8 SMARAM

SMARAM

    Member

  • uniGUI Subscriber
  • PipPip
  • 16 posts

Posted 10 July 2018 - 09:14 PM

 

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?"


  • 0

#9 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 10426 posts

Posted 11 July 2018 - 06:46 AM

Your report contains elements that are not compatible with ISAPI dll. Can you test with a blank or simple report?


  • 0





Also tagged with one or more of these keywords: isapi, threads

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users