csc.exe
Hi This is my first question in this forum, we are using MOSS 2007 on WinServer 2003. We have developed many webparts and they are placed in VirtualDirectory - 80\bin. from past few days we are observing the CPU utilization of the server is almost 90-100%. This happens when any page is browsed from the Client Side. The process responsible for this is csc.exe. The processID keeps on changing and we Cannot kill this process. It's also observed that for one client request many w3wp.exe process gets started. we are not calling CSharpCompiler explicitly anywhere in our code. What needs to be done to get rid of this issue? please help
February 19th, 2010 10:00am

The process you are referring is c sharp compiler. I have never seen this process in any of our production machine. Make sure you don't have visual studio running on that box. And no one is debugging the application. Thanks, A.m.a.L Dot Net Goodies Don't hate the hacker, hate the code
Free Windows Admin Tool Kit Click here and download it now
February 19th, 2010 10:20am

Hi, I'm having the same problem reported here. in my case, we have some custom webparts running on MOSS 2007 and most times we try to edit a page on our DEV site, the compiler process csc.exe begins on the server and both csc.exe and w3wp processes alternate using 100% of the CPU. I looked at the server config and Visual Debugger is not enabled there. Does anybody know what could be the possible cause of this? Thanks a lot, Nicolás CurtiNicolás Curti
April 8th, 2010 4:41pm

csc.exe is loaded the first time a page with inline or code behind (i.e. code that is not already compiled into a DLL) to do an initial compile of the code. As SharePoint is largely C# you would see csc.exe, but in theory you could see other .Net compilers popping up. If you go to your test/dev server, run IISRESET, open the Task Manager, click Processes and sort by name, then open a browser and start visiting pages in SharePoint you will see csc.exe popping up for a fraction of a second on the first load of many pages. > most times we try to edit a page on our DEV site During page edit? Add/removing web parts? > using 100% of the CPU Typically csc.exe should only run for the first load of the web part or page, and only for a fraction of a second. Are these custom web parts really complex and have a lot of code? Was the code compiled into an assembly? Is this web part calling custom web services on the same server? Mike Smith TechTrainingNotes.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
April 8th, 2010 5:46pm

Hi People, This week I think I found the cause of the problem of csc.exe consuming all my server CPU. Unfortunately, I found the cause, and not the solution. Yesterday, after a delay, I finally upgrade my MOSS production environment with WSS and MOSS Service pack 2 and october 2009 Cumulative Update. Everything was going all right, until I discovered that my publishing farm began to present the same problem that my DEV environment was presenting. Everytime somebody try to edit a page, the csc.exe process starts to work and consumes 100% of the server CPU for a long time. After this, My diagnostic is that this problem is about something related to this service pack or update, and not about having code behind or something like this on my application. Does somebody have an oppinion about this?Nicolás Curti, MCP
June 1st, 2010 11:45pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics