Memory Leak :: How To Debug?
Anyone have any insights on how to debug a memory leak with a classic asp application?
View RepliesAnyone have any insights on how to debug a memory leak with a classic asp application?
View RepliesI'm having a problem that I can only attribute to something that I don't
know about ADO. I am using an ADODB.Connection with .CursorLocation = 3
since I am using MSSQL with text fields.
I am running a large set of 4 LEFT JOINS (5 tables in all). Currently
my recordset is returning 168 rows and 23 colums. After looping through
the ADO connection 27 times (creating a pdf report for users to print)
the data goes nutz. I have tried using different inputs and no matter
what on the 27th time is stops.
We are doing a stability test on our application to prepare for Microsoft
SQL Server 2000 certification, and we found a memory leak, but we cannot find
its source and fix it.
We use an ASP page written in JScript that connects to Analysis Services
2000 using ADOMD and retrieves data from it (this is a very simplified
version of our real application that we created just to test the memory
leak), see the code below.
We are using Microsoft Application Center Test to run this page, and
Performance Monitor to monitor the Memory/Committed Bytes and Processor usage
of our web server. The Memory/Committed counter slowly increases over time,
which indicates a memory leak, right? The Private Bytes for the InetInfo
process remain stable.
Our setup is a web server running Windows 2000 and Analysis Services on a
different server running Windows 2000. The application Center Test is running
from another computer. We also tried using a web server running Windows XP
Pro instead of Win2000, with similar results.
Using PerfMon, we monitor the number of Analysis Services connections, and
this number remains stable, so the memory leak doesn't seem to be due to an
ever increasing number of AS open connections.....
Can this be the reason for huge memory expansion ? Doesn't this script free memory of the object it had created?
sub createCOMobject()
set obj1 = createObject("object1")
dim flag = 1
useObject flag,obj1
end sub
----------------------------------
sub useObject (flag, byRef obj1)
....
set obj1 = Nothing
end sub ....
We are running asp (not asp.net) and vb com dll web sites on a machine which also has sql server 2000 sp3a running and uses Windows Server 2003. We recently migrated from Windows 2000 (same database) where we had no problems. However on the new machine, despite much being much more powerful and having the same usage, the box is periodically
grinding to a halt. The cause seems to be sql server using excessive amounts of memory, it steadily builds up to after a reboot to a high level. This seems to point in the direction of a memory leak, is anyone aware of any such problems with asp/sql server on windows 2003 and how to diagnose/fix them. I am aware of some unclosed connections in the asp code and objects that have not be set to nothing but this did not seem to cause a problem in the old machine and it is not practical to fix them all in the short term. I thought it might be unclosed connections although when I looked at SQL Server:General
Statistics and User Connections I did not seem to see a large or increasing number of connections.
Im trying to track down a memory leak in one of our windows servers thats running W2k. Pretty basic install, although we have 3rd party software that simply blows.
Is there a way to check which ASP processes are running via command line, or another method on W2K/XP ?
My webhosting company took down my website as it was causing a high memory use. Of course this happened just when I was on holiday ! Anyway I am trying to figure out what's going on. I didn't updated any script for more than 2 weeks before the abuse occured as I was on holiday. To make sure everything would be fine when away I had purge the database, defrag and compact it before leaving.
Any tools I can use to check out my site ? My host send me some log files created by Filemon but I can't really figure out what's wrong.
I have implemented a content management system through ASP and XML files. I am using sessions for my login information. It is a fairly complex site and uses various personal options for clients like, my page, my setting and my e-cards. The database for the clients is kept on MS SQL server. ANd I am using ADODB to connect at various stages.
The problem is that when more than 10 people try to access the site at the same time, irrespective of which part they access, the site hangs and goes down. When I monitor the server for the problem, the memory free goes tremendously high, even for small no of connections. The connections keep on increasing at a fast pace till the website crashes and there are no more connections that can be added. I am currently trying the strategy of timeouts (decreasing them at various portions of the code) and also checking whether there are any open connections. But I am not able to check how many clients are ACTUALLY connected. I read Response.isClientConnected is a strategy....
We have a web application in AS. It also uses COM+ and SQL Server as back-end. Sometimes the size of the dllhost.exe grows unexpectedly. It is such that we restart our IIS/ PWS. Also there is only one instance of dllhost running when we restart the webserver but later on we notice more than one instance sometimes.
View Replies View RelatedWe have an webservice application that has a memory leak when the application
is compiled release mode. However, when the application is compiled in debug
mode it does not exhibit a memory leak.
We are running .net 1.1 compiled with VS 2003.
The application does reference an unmanaged dll that provides security
functionality. This dll is instantiated once and referenced on every web
service call.
As I ran in to errors like "Ran out of memory" and "Out of memory" I
supposed my website might have memoryleaks. To trace a potential memory leak
I isolated the IIS process and monitored the 'Virtual Bytes' and 'Private
Bytes' for a while.
I noticed the private bytes stays 'low' all the time. Sometimes a bit up,
sometimes a bit down. Virtual bytes also follows the same pattern for most
times. But, sometimes it increases to almost 2gb en stays there.
I've been reading for memory leaks an aggressive caching and stuff and was
wondering when there is a memory leak. In short: what does it mean thet the
amount of virtual bytes stays high? Is this probably due to caching or....?
I need to debug a COM component written in VB 6.
The .DLL is called from asp.
All runs well under Windows 2000 (I remember, I had to ad
a lot of rights to the user doing the debugging)
I just run the dll (F5) in VB, the browser opens the .asp-
page where the DLL is called and I see the request in the
VB-Debugger. Very nice!
It does not run under Windows 2003.
Any Ideas?
I tried to give the Application pool running the
application admin rights. but it does not work.
I can not find any errormessage in the event log.
I am using IIS 6.0, VB6 SP6, and Windows Server 2003. The COM are created using VB and being called by some of the ASP pages.
I was tryng to debug the COM in the VB COM project (which is already in debug mode), breakpoints are set at the specific functions. But, I found that the COM component does not jump into the COM project and thus does not stop at the breakpoints I set. FYI, the COM works fine.
Anyone know how this happen and how to solve it?
Where can one get documents on how to debug asp code?
View Replies View RelatedI want to know what's the best way to debug ASP pages? Now, I just put the
following code when I got run-time error, but sounds like not efficient.
I typically use a VB com component for handling business logic and data processing in my ASP projects.
In the past, if I wanted to get a forms contents into my VB layer I would simply pass it in the call and accept it in VB as a string which I could put into an xmldom object.
I am now experimenting with passing the entire form along as a form object (to be accessed as such in VB as a ASPTypeLibrary.Request type.
I have found two ways to do this.
1. pass the form as above using the listed request type in VB. This works great.
2. Dim up a ASPTypeLibrary.Request object in VB and assign it
GetObjectContext.Item("Request").
Using GetObjectContext is much more difficult to implement if you want to have debugging ability in VB (there are numerous security considerations).
My question is (and thank you for reading this far), do any of you know what the best practices is for a production environment? Can anyone think of any reason why I shouldnt just use the easy method (pass the form and define its type in the argument list for the sub or function)?
How to do debug in visual studio a connection that comes in from a url
referral?
I cannot get visual studio to "boot" on the referral. IIS just runs the ASP
directly.
I've found that, when debugging scripts on my computer, IE will give me an Error 500 message if something is wrong with the script, whereas IE on my co-worker's actually prints the line and points at the exact character that's amiss, and says what kind of error it is.
This is incredibly useful for someone who is learning like me, but we can't figure out how to make mine work that way (it's the same version on the same OS and everything).
I built an MTA which is used from an ASA and ASP pages. The MTA was
developed in VC++ 6.0.How would I go about debugging into the C++ code?
when i try to debug/run the SQL statement in TOAD, it come out with the error "insufficient privileges". below is my sql statement :
INSERT INTO INST_REC(IID,SN,AN,BID,MANF,MDL,INST,AREA,SYS,STN, SID,ST,CF,OPT,PO_NO,UC,SPL,BV,RQS,RMK)
VALUES ('huiy','uiu','ui','uy','uiy','iyiu','yi','yi','yi ','y','y','A','i','i','utytu','4646','rty','797',' tyf','hfgh')
I need to debug the code and get the value of variables in an asp 3.0 page
where the javascript is being processed on the server side (i.e. within <%
%. I can use Response.Write("window.alert(".etc")"); for text messages to
tell me where i am in the code, but I cannot seem to figure out how to
display values of the variables...
I just got the programming down for a new site i've been working on. I am curious if anyone out there wants to just browse through the site as a normal customer and tell me if they recieve any errors or problems.. Any suggestions, or critiquing remarks would be helpful. The more people the better! I greatly apprecaite everyone's time.
The url is: http://www.corsican.com/test/
The Login is: test
the Password is: test
What's a good tool to use for debugging ASP pages which contain bunch of javascripts?
View Replies View RelatedI have an asp pages which uses ActibeX dll and Exe written in in VB and VC++. I want to debug the components from asp page. When the asp page is run I should be able to get the breakpoint in my VB & VC++ dll and exe.
what could be the setting to do that. I can debug those componnets from another VB/VC++ applications but I want to debug from asp page.
IIS5, on a Windows 2000 Server machine. Debeg.WriteLine "Hello, world!" How can i view it?
View Replies View RelatedIs it possible to change the web.config or machine.config file to allow access to an .asp page? I'm new to .Net 2.0.
View Replies View RelatedI am running an ASP application from within VS .NET 2003. When I run, the files are put in readonly mode, even thought its only an ASP page. Is there a way to edit the ASP (not ASP.NET) page (not in the middle of debugging ofcourse) without quitting debug mode
View Replies View RelatedWe have a development iis6.0 server. Multiple programmers are developing independent applications. Non are sitting on the machine they all develop on their own system. Regularly they try to debug and receive the following error.
Error while trying to run project: Unable to start debugging on the web server. A ebugger is already attached. Would you like to disable future attempts to debug ASP.NET pages for this project?Does this mean each developer must run IIS on their own computer?
what is the best IDE/tool to code and debug asp and asp.net scrips?
View Replies View RelatedI am having a problem which thus far only seems to be fixed when I refresh the page. The basic process is as folllows:
1. Select details from the DB and display on screen.
2. Click a link 'Generate Docs'.
3. This then goes to a page which first selects from the DB using information passed through the URL from the above link to identify the correct records. We then create a PDF file based on the data from the DB and display the link to the newly created PDF. The problem, is that at step 3 the PDF does not get generated on the first pass, only if you click the refresh button on the browser.
I have checked all the obvious items, ensuring variables are assigned correctly and called correctly, I have tried implementing a number of 'must revalidate' style tags in both ASP and HTML, I have checked through all of the queries to ensure they are being processed and the data is returned on the first pass and they are and nothing thus far has worked.
i try to debug a simple ASP.NET project on a windows server2003 and i
receive a msg that saya's i dont have permissions and to check if i am in a
debugger group.
I following the IIS (version 6.0) with the "Manage your server" from the
administrative tools. i did the following:
1. make sure that the machine debug manager service running
2. the digest authentication is unCheck
3. add the IUSR_ to the debugger group in the AD (the computer is a domain
controller)
4. i gave the user a full control over the wwwroot library
i really dont know what else to check.
I'm trying to figure out how to debug a very simple COM object I developed
in VB. I'm very new to VB and ASP so I have a lot to learn.
That said, I found what I thought was perfect article which covers this:
http://support.microsoft.com/defaul...;en-us;299633#2
However, I'm running on Windows 2003 and at step 4c) I don't have an
"Internet Service Manager" but rather "Internet Information Services (IIS)
Manager". OK, fine, I assume the name changed. Code:
i have searched through a ton of past posts in an effort to find the
answer to my problem but so far have come up with nothing.
The problem I am experiencing is with VS6, visual interdev on windows
2000, with IIS.
When ever i attempt to debug my asp web app the debugger will step into
the code and will start an Iexplore.exe process, but not actually make
internet explorer visible.
Does anyone know any way round this I have spent loads of time trying
to sort it already.