| Threading problems with COm Interop (6 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| I am using a third party COM componenet which is not thread safe in a .Net web application using Interop. When two threads (two requests) are trying to access the componenet it is giving an error and crashing. It works fine if the request is made only one at a time. How can I code around this problem so that only one thread operates on the COM object at one time. Any help will be greatly appreciat... |
|
| OutOfMemoryException was thrown (3 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hello everyone, I wrote a web service that monitorizes some directories and their contents. It returns a XML document as string. A web application calls this web service and parses the XML to display the status of directories graphically. It worked fine on Windows 2000. Then I transfered the web application on Windows 2003 and an OutOfMemoryException is thrown when there are too many files. Note t... |
|
| I need help with architecture design,please. (4 replies) |
| microsoft.public.dotnet.framework.performance |
| I need help with architecture design,please: I have a server which constantly downloading messages from the internet and store them inside a data base. the server have two administrators options: one is a local windows application,and the second is a web application The administrator can either delete messages,add new messages,and send messages i am new to .NET remoting,so here is my idea in gener... |
|
| OutOfMemory Exception but heaps of free memory (11 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hi, Can one tune the Framework memory management? I have an app that fills a large table (approx 10 million records 2 int columns), however prior to filling the table an exception is thrown claiming I am out of memory. I've checked the memory usage at this point (using TaksManager Performance tab) and it varies but it's approx 1.3GB or so. I have 4GB of memory (4 x 1GB SIM). Also I've loaded some ... |
|
| Reading through large datasets in blocks (2 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hello All, I'm trying to process a couple of gigs worth of data, which I have to process in blocks of an unknown size to be determined from the data itself. If I use a DataAdapter on the whole set of data, the docs tell me it will load the whole mess into memory, and I haven't got a couple of gigs to spare. If I use a DataReader to get the data one line at a time the docs tell me it won't do this,... |
|
| .NET is slower on win2000 cluster - .NET 1.1 Bug ? (2 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| I have written a .NET application to be deployed on a two clusterd SQL server machine. My probelm is it runs slower on the very powerful Cluster node than my developmet PC. It's actually very slow. I wrote a simple application as below to to see whether the problem is actually with .NET. public FileTest() { Console.WriteLine("Start here"); long Start DateTime.Now.Ticks; for (int i 0;i 1000;i ) { C... |
|
| .NET app is slower on dual processor machine (2 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hi I created an Application which runs slowly on our Dual processor machine which is a part of a two node cluster too. To see whether it's a .NET problem i created another test app as below. long Start DateTime.Now.Ticks; for (int i 0;i 1000;i ) { Console.WriteLine("Print Something " i); Thread.Sleep(10); } long End DateTime.Now.Ticks; long Diff End Start; Console.WriteLine("Time Taken is : " Diff... |
|
| Page Counter... (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, I am developing C#.net web base application. I want to know how I can page count a same page. I want to this type. 1) When a new user open page he/she see the number of pages open same time and total how many time this page open. Suppose 10 user open search.aspx every user see this page count 10; And also see total open 12,000 (it is total time's opened this page) 2) If user refers page page c... |
|
| Transaction Cost Analysis (7 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, Maybe someone can shed some light on TCA... I've read a few articles about TCA and here's what I understand: 1. You gather statistics for your web app and put together a user profile that show the actions performed by users and how often they occur. 2. You break the user profile into individual transactions. 3. You write a load test script to test each individual transaction and increase the l... |
|
| Best Profiling Tool? (5 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, I am looking at Profiling my ASP.NET app, as despite being small, with all resources closed and disposed it forces the w3wp process on my hosters server to recycle, and so I am trying to cut down on memory usage and so wondered which of the profilers available for a price ofr free would serve me best. I have been using the Performance monitor in Admin tools, and so have lots of stats on Virtua... |
|
| Application initialisation problems (5 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi there, We have a large database application written in managed C which loads 100 managed c dlls. The app also includes some unmanaged classes some of which has instances declared globally. However every dll is compiled with managed extensions on. We are encountering occasional initialisation problems when running our app on a server with 3GB of RAM, which are not happening on our dev machines. ... |
|
| .Net 1.1 SP1 - Definite measurable performance slowdown (2 replies) |
| microsoft.public.dotnet.framework.performance |
| Background... I've been working on a project for some months now which runs code that is CPU intensive, therefore I have been very careful to keep track of the code's performance and to make optimizations where possible. I just installed .Net 1.1 SP1 and was curious to see how the code performed. To my surprise it actually runs marginally slower, about 10%. I haven't yet been able to isoltate any ... |
|
| Windows Media Services, H.323 and Video streaming in general (2 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi everyone, pls forgive me for my lack of knowledge and skills if my question sounds very stupid. I am trying to implement a video conferencing software and I am currently looking at a few set of technologies, among them WMP, RealMedia, H.323 and XviD (not sure if it is suitable for streaming even) . I would like to seek the advice of those experts on the following questions, 1) What is the best ... |
|
| Performance Testing... (2 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, Now I am developing C#.net Web Application. It is almost completed. Now I want to check performance testing of it. I want... 1) Create 100 user environments, mean 100 users simultaneously request a same page I want to see response time and load on server. 2) As per my idea we can use test project it has web base test and load test inbuilt in Microsoft visual studio Whidbey. Any one has idea ab... |
|
| Using a DataReader to fill DataSet/DataTable (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Hello, I am wondering what is the difference between using a DataReader to fill a DataSet/DataTable vs. using a DataAdapter to fill the Dataset/DataTable. Is there any performance issue? Is this an issue at all? Thanks |
|
| String.Empty and performance (10 replies) |
| microsoft.public.dotnet.framework.performance |
| I have been wondering why one would use String.Empty rather than the constant "" since it would seem that "" is not platform dependent. Then it occurred to me that at runtime probably "" is converted to a string object and maybe this overhead is avoided with String.Empty. On the other hand maybe the C# compiler performs this simple optimization anyway. Basically I'm just trying to determine if Str... |
|
| Setting objects to Nothing uses less memory! (23 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| I have noticed in a lot of code samples that people are using the SomeObject Nothing line. But I couldn't find a definitive answer anywhere to, does this make a difference, or is it a throwback to VB6. So I have decided to write a little test application. There are two buttons, the first one assigns 10 megs worth of objects without setting anything to Nothing. The second button also assigns 10 meg... |
|
| Garbage Collector questions (16 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hello everybody, we have developed a very large remoting application in c#. The GUI has a MDI using the standard WinForm MDI container. Now what we experience is that opening a (rich) databound dialog can take between 1 and 15 seconds. First we couldn't explain this variation in time since the dialog and the displayed data were the same at each trial. After profiling the application with CLR Profi... |
|
| Setting objects to Nothing uses less memory! (7 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hi Chris, Thanks for replying. Do I understand correctly: When the system reaches the end of the function that doesn't do the set object to nothing: The garbage collector only does one pass and frees "bigObjects", but does not recursively free anything it owns? (i.e. that only happens in the second pass) But when the system reaches then end of the function that sets everything to nothing at the en... |
|
| Reflection Performance Question. (9 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| hi all. I am creating an application in which I map tables to objects. For the GetAll function, Instead of: Public ArrayList GetAll(){ SqlDataReader reader null; ... reader cmd.ExecuteReader(); ArrayList result new ArrayList(); while(reader.Read()){ Customer customer new Customer(); customer.CustomerID GetInt(reader["CustomerID"]); customer.FirstName GetString(reader["FirstName"]); customer.FirstN... |
|
| AverageTimer32 custom performance counter shows wrong value in per (2 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| My application creates an AverageTimer32 performance counter to display the average duration of certain method calls, but the value of the counter shown in perfmon is almost 3 times too high. I have an AverageBase counter immediately following it in the CounterCreationData which is incremented each time the monitored method call completes. At the same time, the application calls IncrementBy(method... |
|
| JIT compiler optimizations (inlining threshold too low?) (7 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hi I noticed that the performance of the JIT optimizer has not improved as much as I had hoped since 1.1. Delegates are much faster, but especially inlining and subsequent optimizations still do not happen often enough. I attached a small example. Its two different methods to do a mandelbrot set iteration that should run equally fast with a decent JIT optimizer. The first method uses the operators... |
|
| Multi-threaded app and Thread Safety. (3 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| I have a windows service that spawns multiple threads running a thing that does a bunch of processing. Here's the code that spawns the threads: m totalThreads Convert.ToInt32(Settings.GetSetting("ProcessorThreads")); m executingThreads new Thread[m totalThreads]; for (int i 0;i m totalThreads;i ) { ProcessManager processor new ProcessManager(); m executingThreads[i] new Thread(new ThreadStart(proc... |
|
| What's the best practice to pass dataset object? (7 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hi I am looking for best practice on passing dataset object around, should it be passed by reference or by value. What gives the best performance, how does it works internally when you pass by value? Please advice, thanks Rahul |
|
| PerformanceCounter Mem Leak (5 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| hello, after starting a performance counter everything works fine, but every time I get the value of the counter I've a mem leak of 4K, what can I do against it ?? getting vallue : perfmoncounter.nextvalue I' ve the problem with every counter I monitor! what to do against it ?? thanks for your attention, poor beggar poor beggar@hotmail.com |
|
| Free up memory used by dataset (4 replies) |
| microsoft.public.dotnet.framework.performance |
| The code: DataSet ds new DataSet(); OleDbAdapter da new OleDbAdapter(sqltext, connection); da.Fil(ds, "foo"); the command text is a select command retrieving lots of data. After that call the memory jumps up (by more than 100M). Then I try to clean up the dataset by: ds.Tables["foo"].Clear(); ds.Dispose(); ds null; But the memory decreases by only a fraction of the above (about 10 20M). What's wro... |
|
| Setting objects to Nothing uses less memory! (2 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Thanks for all the insightful responses, My faith in the garbage collector has been restored. I have rewritten my sample application so that it doesn't have a reference to a reference, but instead creates the objects directly (generation 0 now?) .... Dim lotsOfData() As Byte lotsOfData Array.CreateInstance(GetType(Byte), 1048576) '10 Mb 'Now do nothing, let the garbage collector pick up the fact t... |
|
| cluster IIS freeze (2 replies) |
| microsoft.public.dotnet.framework.performance |
| We have a clustered environement running our website and 1 of the 2 servers keeps getting iis frozen while the other remains OK. Does anyone have any ideas about why this might be happening? ALSO We are closely monitoring the aspnet wp process for our newly launched web app. The application has crashed about 10 times in 2 days and seeveral times it appears that this process has beeen consuming a l... |
|
| Performance Problems with Probing (7 replies) |
| microsoft.public.dotnet.framework.performance |
| 1. In our application which uses NTLM; .Net always requests a file as Anonymous before requesting it using the NTLM authenticated credentials in an application with over a million hits a day this is quite a bit of extra posting going on. Anyone know how to stop this? 2. Even when supplying a probing hint in the web.config file; our .Net Win Form embeded user controls probe 6 times before finding t... |
|
| Reading MS Application Center Test (2 replies) |
| microsoft.public.dotnet.framework.performance |
| Could anyone teach me how to read the following ACT result? The performance result for my web application seems like very poor. Could you please guide me how to improve the performance based on the result? Here is the result. Application Center Test Overview: Summary Test Name: TestProject: Inventory.NET Test Run Name: report Inventory.NET Aug 16, 2004 10 29 59 Test Started: 8/16/2004 10:24:56 AM ... |
|
| Oracle Forms vs Visual Studio .Net... pls Help (2 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hi all I need to make decision on which development tool to use: Oracle Forms or Visual Studio .Net. We run Oracle 9i on AIX. And we will develope database application. If use .NET we will use win2003 as App server. Could any pls give me argument which tool is better ? Will there be any issues or problems I might faced if we standadised on .NET and Visual Studio as platform and development tool an... |
|
| Error creating window handle (2 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hi, I am working on a windows application (C#) which has number of tab pages and each tab page contains large number of controls (labels, text boxes, buttons etc). After facing the window creation problem, I came to know that the maximum no. of window handles per process is limited to 10000. I thought of calculating the no. of user objects in the current process and restrict the user to add more t... |
|
| HyperThreading Good or Bad... (5 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hi, We have a mission critical trading application running on 8 CPU ( P IV 2.8 Ghz) with Hyperthreading enabled that gives us 16 logical CPU... most of our applications needs to be behave in a timely manner even a 2 or 3 second lag sometimes hurts organization P&L sheet... based on my understanding after reading below articles... even intel itself says applicatins may gain 10 30% perf improvement ... |
|
| Massive memory use by XmlDocument (4 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| I wrote a very simple test program that opens an XML document then releases the reference to it: static void Main(string[] args) { XmlDocument doc null; using (Stream s File.OpenRead(args[0])) { doc LoadXmlDocFromStream(s); } doc null; Console.ReadLine(); } protected static XmlDocument LoadXmlDocFromStream(Stream s) { XmlDocument d new XmlDocument(); d.PreserveWhitespace false; XmlTextReader reade... |
|
| Plz help (2 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| how to Test Page Fault,CPU Usage,Disk I/O etc for and Application ? Posted by a user from .NET 247 (http://www.dotnet247.com/) Id r/B03ikL0EmggVUxjlCqYA /Id |
|
| Remoting performance binary over HTTP (4 replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, (I previously posted to dotnet.framework.remoting but got no replies.) I have been doing some Remoting vs. Web Services tests for the architecture of a new project. I have performed my tests using both .NET v1.1 and .NET v2.0 Beta 1 and I have had some confusing results in v2.0. Either I am not configuring it properly or there is a bug in that it might be using SOAP formatting even when config... |
|
| CPU Usage (3 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| I want my application to be stable and should slow down if CPU usage is too high. How can I moniter CPU Usage %? There are 10 types of people. Those who understand binary and those who dont. Vedant Lath |
|
| Worker Process Restarts (6 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| I have the machine.config "memory limit" for the worker process to restart after 10% of memory (255mb) is used. This has always been plenty but now the worker process is using that much memory every 30 minutes and restarting...thus killing sessions and wreaking havoc on some apps. My question is: What's the easiest way in perfmon to identify which of the 13 .net apps on this machine is leaking? Th... |
|
| Is this the correct place for ACT questions? (2 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hello, I have been wondering if this really is a good place to post ACT questions. I seem to have a bad time getting questions answered on this newsgroup. I know that there is vsnet.act (it is something like that anyway), however, I do not see that newgroup at "http://msdn.microsoft.com/newsgroups/". Where can I find that newsgroup on msdn.microsoft.com? Do most people just record test? I am tryin... |
|
| Monitoring function calls (3 replies) |
| microsoft.public.dotnet.framework.performance |
| Is there any way in C# .NET to monitor an application, and keep a log of all the activity it does... e.g. functions called, objects initialised and most importantly the parameters being passed to the functions. I have looked at different profiling tools, but none tell me the parameters being passed around. Thanks. |
|
| Can I have two message pumps in the same form? (5 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| I have one chart in a form and some buttons. The chart shows a huge number of points and the redrawing takes about 2 seconds. The problem is that while the chart is redrawing the form gets frozen. The problem comes from the fact that there is only one message pump in the form and the processing time of the refresh chart message takes 2 seconds. During that time the pump is not attending messages f... |
|
| what is native optimization? (2 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| can somebody explain what native optimization means? Thanks |
|
| Why is BinaryWriter.Write7BitEncodedInt a protected method? (6 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Why is the BinaryWriter.Write7BitEncodedInt a protected method? I wish to use this functionality out of the box, yet I must override the BinaryWriter class to do so, just curious why Microsoft? Thanks in advance. Chris |
|
| Framework is slow to open text files for append access (4 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| I've got a server that appends text to the end of a file whenever it does anything. If I close the file after each write, the server runs like a dog. If I don't it's fine, but the fact that the file is then permanently open for writing bothers me like I can't delete it unless I first shut the server down. The underlying Windows API's for opening a file and seeking to the end are fast enough why is... |
|
| OutOfMemory exception when loading large images (6 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| I have a problem when loading some pretty large images. The images are ~700mb uncompressed, and the two first times I load an image, everything works fine. Each time I'm done with an image, I force a Garbage Collection using GC.Collect() and I can see in the task manager that resources are actually being released. The weird thing is that when I load the third image to process (it's the same functi... |
|
| TCPClient Performance Severly Lags Behind VB6 Winsock (3 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| I'm writing a connector for a client to replace an old VB6 system. The connector works, but is several times slower than the older VB6 connector. I have isolated the problem to be in the connection to the server. All we are doing is sending a input stream to the server and receiving an output stream in response. The code is below. Can anybody see why this would run so much slower than VB6 using th... |
|
| File System as a cache mechanism (5 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| In the journey of finding ways to scale our application with my current hardware, I've been playing around with using our servers hard disk as a means of caching information. We have a LOT of content that doesn't change very much and is guarenteed to be used every single page view (template information for hundreds of templates, 'whose online' counts, custom navigation, etc). Under load, there is ... |
|
| PHP and ASP.NET go HEAD to HEAD (14 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| PHP and ASP.NET Go Head to Head By Sean Hull http://otn.oracle.com/pub/articles/hull asp.html SUMMARY at the BOTTOM Speed and efficiency. As I mentioned earlier, ASP.NET is a framework allowing you to use various programming languages. In addition, it is touted as having a great object oriented model. All this is true, but it becomes a detriment as far as speed is concerned. For all that advantage... |
|
| What makes VB.Net XslTransform REALLY REALLY SLOW? (7 replies) |
| microsoft.public.dotnet.framework.performance |
| HI. I've just started working with VB.Net to put a wrapper around an XML processing application. This application bascially presents a user with an iterative loop of load XML Transform for display to user collect user amendments to XML update XML and round we go again. I am using XSLT stylesheets for most of the processing. I have used these stylesheets for a couple of years and have tested and tu... |
|
| Performance... Need clarification (5 replies, VIP) |
| microsoft.public.dotnet.framework.performance |
| Hi, Is it necessary to dispose the objects created in procedure be disposed manually? Why can't we just rely on the GC to do the job? For example: I have this: Sub SomeSub1() '...some code... If IsSubgroupOf(code, GetDataSet()) Then '... End If 'Here I cannot dispose the object passed above (Inline) 'This object is pushed on the stack during the parameter and 'will be disposed by the GC later End ... |
|