Solved

Performance issue with Com+ (EXPERTS!!!)

Posted on 2003-10-27
6
266 Views
Last Modified: 2011-09-20
Hi,
I have a simple COM+ object.
when I use it in the loclal Lan I can create it as a dcom in great performance without even notice it.
when I try to create the com+ object from an ASP page on the net
It take it ages to load (the IIS is in the DMZ and the COM+ is on the AppServer on my LAN).
The Com+ is called from the IIS server via proxy (after export of the COM)

Any suggestions how to make it work faster?
what could cause the problem?

Thanks,
The shark
0
Comment
Question by:TheShark10
  • 2
6 Comments
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 25 total points
ID: 9627327
Slow network connection between DMZ and AppServer? Slow ASP code? Invalid COM+ component or wrongly configured component?

Okay, go to Component Services, your application and check the properties of your COM+ component. Especially the tabpage Advanced with the "Server Process Shutdown". If you set this to 0, your COM+ is loaded and unloaded for EVERY call to one of it's methods. This could be slowing things down a bit.
Unlike an ISAPI DLL, a COM+ application can be unloaded by the system if it hasn't been called for a certain time.

And keep in mind that a COM+ component is technically stateless. So normally it won't remember information between calls. So if you need to initialize data before executing a method, your COM+ might now need to initialize the data for every call since the information is gone again once the call ends.
0
 
LVL 6

Assisted Solution

by:swift99
swift99 earned 25 total points
ID: 9631450
Without crossing system boundaries, COM has a limit of 5,000 calls per second on an 800 MHz Win98 machine.  From my perspective, this is sluggish no matter how you cut it.

Options:
1. Refactor the object to minimize required communications overhead.
2. Increase memory available on the machine
3. Refactor and preload the object as a singleton

Are you certain that the bottleneck is your object, and not the ASP?  Interpreted VB (ASP) is not the fastest technology around.

Just some ideas.
0
 

Author Comment

by:TheShark10
ID: 9632300
Yes the Com+ is the bottleneck.
I have an ASP page that only create the COM+ object (via proxy)
and doesn't even call this COM+ object methods.
this page takes ages to load although both computers are strong.
(this happens even if only one user is connected).
the problem is with the COM+ and not with the page cause if I take out the line that creates the COM+ object it takes less than a sec to load the page.
0
 
LVL 6

Expert Comment

by:swift99
ID: 9633848
Hmmm ...

How much memory is available?  I have seen "order of magnitude" bottlenecks when virtual memory has to be hit.

Are you able to preload the DLL's behind the COM object?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

919 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now