Lost threads in VB-Com component 
Author Message
 Lost threads in VB-Com component

I have a web-site wich uses VB Exe-servers to fetch and format data.
The servers are set to one-thread-per-object and works really fine.

When I monitor the processes through the TaskMgr. I can see how the threads
get created and destroyed.

The problem is when I stress-test the system, and the processors runs nearly
100%,
the programs seems to "loose" som threads and their memory, wich is retained
in
memory until I reboot the machine.
I know the processes are finished, because I can see the result, but TaskMgr
tells
me otherwise. In one test I "lost" 200 threads and about 200MB memory.

Is there anything I should be specially aware of when developing ActiveX
Exe-servers
for web use?
Internally the components use MSXML-parser, and a load of SQL-server calls.

Regards,
J?rn Esbensen



Fri, 26 Dec 2003 23:20:47 GMT  
 Lost threads in VB-Com component
Have you try to use COM DLL instead COM EXE, putting COM DLL into MTS
Server?

David



Quote:
> I have a web-site wich uses VB Exe-servers to fetch and format data.
> The servers are set to one-thread-per-object and works really fine.

> When I monitor the processes through the TaskMgr. I can see how the
threads
> get created and destroyed.

> The problem is when I stress-test the system, and the processors runs
nearly
> 100%,
> the programs seems to "loose" som threads and their memory, wich is
retained
> in
> memory until I reboot the machine.
> I know the processes are finished, because I can see the result, but
TaskMgr
> tells
> me otherwise. In one test I "lost" 200 threads and about 200MB memory.

> Is there anything I should be specially aware of when developing ActiveX
> Exe-servers
> for web use?
> Internally the components use MSXML-parser, and a load of SQL-server
calls.

> Regards,
> J?rn Esbensen



Sat, 27 Dec 2003 18:55:50 GMT  
 Lost threads in VB-Com component
J?rn, you should read the guidelines in the VB documentation on the kinds of
care you should take when using various thread models.  Circular references and
passing references to private objects spring to mind as potential sources of
problems.  I suggest reading this material, which is under "Scalability and
Multithreading".

Hercules Gunter

Quote:

> I have a web-site wich uses VB Exe-servers to fetch and format data.
> The servers are set to one-thread-per-object and works really fine.

> When I monitor the processes through the TaskMgr. I can see how the threads
> get created and destroyed.

> The problem is when I stress-test the system, and the processors runs nearly
> 100%,
> the programs seems to "loose" som threads and their memory, wich is retained
> in
> memory until I reboot the machine.
> I know the processes are finished, because I can see the result, but TaskMgr
> tells
> me otherwise. In one test I "lost" 200 threads and about 200MB memory.

> Is there anything I should be specially aware of when developing ActiveX
> Exe-servers
> for web use?
> Internally the components use MSXML-parser, and a load of SQL-server calls.

> Regards,
> J?rn Esbensen



Sat, 27 Dec 2003 21:33:55 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How to Make My MTS COM component Thread-safe on Access DB

2. VB COM component in Win2k Component Services

3. VB 6.0 keeps losing components!

4. VB COM+ components and Ado free thread model

5. Can VB .NET create a multi-threaded components?

6. VB-VBScript COM Threading

7. VB and COM threading

8. VB-COM Threading Model

9. VB, Threading and COM Problems

10. VB Com and Threading issues

11. COM component as a Visual component??

12. COM component as a Visual component??

 

 
Powered by phpBB® Forum Software