How Can A Measure Server Session Memory Usage?

How can a measure server session memory usage?

I have a 20-30 session variables and I would like to know how much they memory they consume then multplied with my projected user load.

View Replies


ADVERTISEMENT

IIS6 W3wc.exe Memory Usage.

I have a problem with our web servers and memory etc.

We have one application pool with a few websites in it and the w3wp.exe is
consuming about 800 mb memory now.
First we had a rule for recycling the application every x minutes or when
it's using more than 600 mb memory but when the recycle is activated the
w3wc.exe process hangs and the cpu usage goes to 100% until we execute an
iisreset.exe.

That's the reason why we disabled all the recycling options and configured
only one worker process for that application.
All the websites in the application pool use the same code, only they have a
different skin.
The website also uses xml/xsl transformations.

Is it normal for an application to push the w3wc.exe process to about 1GB???
If this is the case i really want to know how much memory dedicated hosting
companies need in their webservers :-)

We are storing some information in the application cache, but this is only
for the entire website and not per user... in plain text so the amount of
data would be no greater than 100KB at most.

The application is in classic ASP.
We walked thru the entire code and checked for correctly closing all sql
recordsets, email components etc etc etc...

What is the best approach to find out what is using so much memory and why
the recycle does not work correctly?

View Replies View Related

Memory Usage Of Managed Objects

I am in the process of writing a simple web server monitor (ASP.Net with
VB.Net). One piece of useful information for me to gather would be the
amount of memory used by objects stored in the cache, since objects are
thrown in there left and right.

Items in the cache are either custom objects or are Hashtables. How can I
get the memory size of these objects.

Marshal.SizeOf(object) does not work in this case because .Net cannot
Marshal Managed objects. I thought that I might be able to pull out the
component items in each object and build the total size from their aggregate
sizes, however that would require me to determine each objects type so that I
can correctly gather size info from the internal attributes, something that I
do not want to do.

Is there a generic way to either:

1) get the size of Managed Objects

2) convert Managed Objects into Unmanaged Objects that can be marshaled?

OR

3) some other way to get memory sizes of cached objects

View Replies View Related

Best Practices For Cookies In Classic ASP - Memory Usage

When using cookies in classic asp, is it safe to assume that using a comma delimited list of values in one cookie is much more efficient than using multiple cookies? (example below)

Response.Cookies("someCookie") = "101,102,103,104,105,106"
If InStr(Request.Cookies("someCookie"),"103") 0 Then.......

vs.

Response.Cookies("101") = "True"
Response.Cookies("102") = "True"
Response.Cookies("103") = "True"
Response.Cookies("104") = "True"
Response.Cookies("105") = "True"
Response.Cookies("106") = "True"
If Request.Cookies("103") = "True"

Then.....

View Replies View Related

ASP Session Usage

I'm currently working on a survey system that allowes users take the survey and then review/change their answeres in any order. The system uses 3 frame (Header,Body,Footer).

As it stands the system uses 3 sessions to get this done. One for the project they are in, one for the step they are in and one for their answers.

My question is at what point do I end up over whealming the system with sessions? I truly do not want to slow the system down that much. how I could optimize the usage of this?

View Replies View Related

Session Variable Usage

Is there a way to use a Session Variable to prevent the successful resubmission of a form if the user uses the Back button and tries to submit it again?

View Replies View Related

Out Of Memory: 'Server.CreateObject'

I am getting the following error from my ASP application:
Microsoft VBScript runtime error '800a0007'

Out of memory: 'Server.CreateObject'

It always (as far as i have observed) occurs when i try to create a new
ADODB.connection object in my cCon helper function (opening a connection and
returning it):

Function cCon()
Dim cnRet
set cnRet = server.createobject("ADODB.Connection") 'This is where the
error is thrown
cnRet.connectionstring = GLB_CONSTR_DB
cnRet.open
Set cCon = cnRet
End Function

The page that errors will typically call this function 6- 10times from
different functions which handle their connections in this way: Code:

View Replies View Related

Server Memory Leak

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.

View Replies View Related

Scaling And Server Memory Issues

I am hosting hundreds of websites on a webserver using a combination of sql and asp.
SQL is on a different server. The web server is running win 2003 iis 6 with a single processor and 1 GB Ram. All websites are in 1 app pool.

I find that i get out of memory errors or no new sessions are created when the virtual bytes for an App pool starts to breach over 1500mb. So i recycle the App pool at a limit of 1500mb.

This leads to the app pool recycling 1-2 times a day. Typically the Private Bytes counter is saying 293mb and virtual bytes is 1438mb. I don't know whether this is a leak somewhere in ASP or normal with IIS but the virtual bytes only seems to increase over time and not stablise or go down as i would expect when users visit and leave a website.

I have a script that i use to let uses download files from the server. It uses the response.binarywrite method. If i download a large files (i.e. over 100mb) then i see a big jump in the virtual bytes that IIS allocates in the w3wp.exe process. This does not appear to go down after the file has been downloaded although Private Bytes goes up and then down initially. I was thinking that this may be a cause of the problem?!

....or maybe it is typical for these types of large scale ASP applications? Would increasing the main memory RAM to 2GB help in this situation. The main Physical Memory still reports about 300mb free when i get the memory problems?

Would it help to split the websites into a couple of different App Pools, then increase the page file size to something larger and hence each App pool gets to use a separate 2GB memory space? Would i benefit from moving to Windows 64bit edition and installing more Ram and having a large Page file to cope with the large Virtual Bytes?

Can anyone offer some guidance who have had similar issues with hosting their sites?

View Replies View Related

Out Of Memory Error: Server.CreateObject

I get this error in trying to do recursive loops. My function to get the subordinates is: Code:

View Replies View Related

Server Object, ASP 0177 (0x8007000E) Ran Out Of Memory

I am creating an instance of MFC COM dll through ASP page.

It is giving me the following error.

Error Type:
Server object, ASP 0177 (0x8007000E)
Ran out of memory

Hardware spec:
p4, 256MB ram

OS: 2000 professional
IIS 5

Irrespective of the user under which virtual directory is running it throws this error. Probably its got to do something with permissions(NTFS).....

View Replies View Related

Ran Out Of Memory :: Server Object, ASP 0177 (0x8007000E)

I am creating an instance of MFC COM dll through ASP page.

It is giving me the following error.

Error Type:
Server object, ASP 0177 (0x8007000E)
Ran out of memory ....

View Replies View Related

Out Of Memory Error Using A WSC Component In ASP Page On IIS 5 On W2k Citrix Server

Can anybody shed any light on this issue ??? Or even ways of temporaily
getting around it ???

FISH is an ASP application which uses a WSC object called "finapps.fishapp"
to handle the requests to the database. The WSC is created in the GLOBAL.ASA
as a Session object using the following line:

<OBJECT RUNAT=Server SCOPE=Session ID=fish
ClassID="{32f74dc1-40f8-4db3-98a7-000200040013}"> </OBJECT>

The finapps.fishapp object creates an "ADODB.Connection" object that is held
open while the session is running, and the Session_OnEnd event should call a
method of that object that closes the connections

The website falls over only when there has been a period of inactivity
greater than the length of the session timeout, and also after there has
been a significant amount of traffic prior to this!

The problem we have only occurs for one of our clients, but occurs seemingly
randomly on all 4 of their servers. The returned results of the error are as
follows:
-----------------------------------------------
Active Server Pages error '8002802b'

Create object failed

An error occurred while creating object 'fish'.
Microsoft VBScript runtime error '800a0007'

Out of memory: 'fish'
//global.asa, line 36
------------------------------------------------

View Replies View Related

Server Out Of Memory Errors - Will Erasing Arrays Make A Difference?

We're getting "ERROR (0x8007000E) Not enough storage is available to
complete this operation" errors on a fairly large, busy ASP/SQL Server web
site. The error is being thrown on a line calling oRs.GetRows() on one of
our busiest pages. The array returned from the GetRows() call will be
'cleaned up' when the page goes out of scope, but I wonder if we should be
calling Erase specifically after the last usage to explicitly free allocated
memory. Is there any actual benefit doing this cleanup explicitly? I've
always throught that ASP's memory deallocation was a bit spotty - can anyone
comment.

View Replies View Related

"Out Of Memory: 'session'"

For some reason while trying to retrieve an existing value from the session object I recieve the following error :

Microsoft VBScript runtime (0x800A0007)
Out of memory: 'session' ....

View Replies View Related

ASP And SSL Usage

I have a client that wants a web form to send credit card information and other personal information to an email address. (such as name@aol.com) Now I am uncertain on how to do this. I know SSL must be involve, but what is the process with this and how to use it with ASP ? How do you use SSL with ASP .

View Replies View Related

ASPEXEC Dll Usage

I am building a small Web app that will allow end users to visit a Web page, click a button which will in turn execute a batch file on the Web server which will migrate code from the development environment to QA. The Web app will also capture logins and execution requests, and the batch file currently emails the robocopy log to me.
In researching ways to get the ASP page to execute the batch file, I came across ASPExec from Server Objects - http://www.serverobjects.com/products.htm#free. It seemed straightforward enough, however I have not been able to get the permissions in sync for it to work.

View Replies View Related

Monitoring Usage

I have just figured out how to use the global.asa file to track sessions on my site. However it relies on users logging off correctly. Is there no way that I can know that the user has closed the browser WITHOUT logging off my site? I am finding users registered as being logged in when they may not be
Could anyone show me some code that I could put in Session_OnEnd that would clean up my database table of active users? Say if a user has been in-active for 60 minutes, clean him out. I have tried to do this but it hasn't worked. I cannot seem to connect to my access db from the global.asa file!

View Replies View Related

Database Usage

i have an access database which iv'e designed for my 'client' (ok, he's my friend) and now i'm also in the process of designing a website for his company - so his customers can log on and see their order status.

what's the best (and most secure) way to update the site - we don't host the site - it's hosted by someone else.

i'm totally at loss with this - since iv'e never worked with networks or servers and i just want someone to point me in the right direction. i don't want to get lock errors and the like.

iv'e heard a bit about ADO and i know some of the syntax although i'm not really sure how it applies to me here (i'm not exactly exposed to ADO since iv'e been learning asp.net 2.0 from which i understand, has totally eliminated ADO)

View Replies View Related

Proper Usage

What is the proper way of using html in asp

Response .write "<td>"& variable & "</td>"

or

<td><% Response.write (variable)%></td>

What difference does it make?I am building a table whose number of rows keep changing
When i use the second method the space above my table keeps increasing.I just want to know which method is better..I had posted a similiar question....I'm still trying to figure out.

View Replies View Related

Display The Current CPU Usage

Does anyone have working ASP code that shows CPU usage on the server where it's running from?

View Replies View Related

Response.write Usage

Hi's there any concerns or disadvantages of using alot of respose write's (50) in a ASP page for calculations and is it better than using the recordsets to do the calculations?

Also, we are looking at moving to a secure server, will this cause any problems apart from changing all references to https?

View Replies View Related

Dynamic Input Box Creation And Usage

Can anyone point me in the right direction for dealing with a dynamically created table of shopping cart items? Each row (or Item) has a column where the user can change the quantity. Is there an easy way to grab and use these changed values when they hit the form submit button?

Or, do I need to bite the bullet and write code that filters through the form fields named "quantity1," "quantity2," "quantity3," etc... And then determine which one goes with which cart item?

View Replies View Related

Avoiding Concurrent Usage Of An ASP Page

I have 4 ASP pages where an user can update some fields and submit the page, so that the fields are updated in the Database(Sqlserver), I need to handle one situation.

1) At a time I need to allow only one user to update the details in a page.

2) I need to stop other users who are trying to access the same page concurrently(probably with a message or Redirecting to other page where he can see the details in a report format).

3) Session timeout in my application is 60, So if the first user leaves the page open for a long time , I think it would be a problem....the other session has to wait for a long time.
I have no choice in decreasing the session timeout interval.

Please suggest , How can I handle this in ASP.

View Replies View Related

Request.form Usage Not Clear

I am trying to get a thorough understanding of a code where a addition or
deletion of records can be done from a list of records. For addition part of
the form, data is being obtained from set of input boxes. Code:

View Replies View Related

Kick Out By Session When Using Server Name

I have the problem being kicked out by session although successfully login whenever I use the server name in my path. It seems no problem when I use localhost in my path. Would appreciate if someone can tell me how to solve this problem asap. Need to use the server name to refer to the asp page

View Replies View Related

Retrieving All ID Session Of A Server

I wonder if it's possible to show in a windows all the Session ID of the people connected to my site along with some other information (IP etc).

I didn't find how to retrieve all the Session ID but I have examples on how to get the current ID for my session.

View Replies View Related

Server Side Session ID

Cookies contain encrypted Session id's isn;t it?How can one read its session id from the Client side? so that it can always b connected?

View Replies View Related

HTA External Server Session Issue.

I've have a asp application that uses several session variables
(login). I have a HTA application (on client "local") acting as the
"window" for the application.

All works fine while using the HTA file to access my local version of
the web application but when I try to access the same web application
on the server with the same HTA file, just changing the iframe source
from the client machine to the server, session variables no longer
work. What's the deal? The server is not on our network, on DMZ. Code:

View Replies View Related

Session Not Working On Server 2000

I am creating a small program for my workplace in asp. It runs fine o
my laptop using XP Pro through IIS. I set IIS up on the server runnin
Windows 2000 Server Standard, have IIS set up identically, and i
doesn't recognize the session variables. Even trying to run i
directly on the server, not through the network, it doesn't work.

View Replies View Related

Lost Session Variables On Server

I have built a site that works/worked absolutely fine on my test server. When I transferred it to a remote web host (the intended permanent home of the site) something very worrying keeps happening to my site.

I use, as is the norm, session variables to store login information. At the top of each page I do a check that Session("isLoggedIn") = "True", and if not then the system logs them back out.

The serious problem is that once you have logged into the site, the next page you try to open it fails the above check and logs you out! Obviously Session("isLoggedIn") is not equal to "True" so it assumes you aren't logged in. So basically the session variables are getting lost/cleared. This makes my site unusable, and is a disaster for it unless I can get a solution.

View Replies View Related

Display Session Objects, Cookies From App On Other Server

I'm writing a reporting application in ASP.

I want to have links to a CF app - specifically VeriSign's eCommerce
Manager (on VeriSign's server).

The links in my app will need current values for CFID and CFTOKEN in
their HREFs - I think these are cookies or session objects the
VeriSign/CF app sets once logged in, they appear on the url.

Assume user has logged into VeriSign manager before my app.

View Replies View Related

Session Variables Cleared Afer Server.Execute

I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of these menus are then placed into the page by calling Server.Execute(rs_Modules("ModulePath")).

This works fine for up to 15 "menus" After that, the session variables that were set (not including those called by Global.ASA) are no longer set. Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved