473,394 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

To ngen or not to ngen?

Hello,
we have a small application on one server that does every 10 minutes
(cronjob) some filetasks and very basic SQL queries against an
installed SQL Server Express instance there.

Does it make sense to ngen that application?
Jan 16 '08 #1
4 1516
No, ngen is not intended for server type applications. In fact, the ASP.NET
engine will simply ignore the ngen image and revert back to the original
image. It won't tell you so, so you might think it is working but it really
isn't (something to do with shared assemblies, but it isn't really
important). You should be simply using the site warmer feature of ASP.NET to
keep the application warm.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------

<PS*******@mail.nuwrote in message
news:86**********************************@e25g2000 prg.googlegroups.com...
Hello,
we have a small application on one server that does every 10 minutes
(cronjob) some filetasks and very basic SQL queries against an
installed SQL Server Express instance there.

Does it make sense to ngen that application?
Jan 17 '08 #2
On Jan 17, 2:31*am, "Alvin Bruney [ASP.NET MVP]" <www.lulu.com/owc>
wrote:
No,ngenis not intended for server type applications. In fact, the ASP.NET
engine will simply ignore thengenimage and revert back to the original
image. It won't tell you so, so you might think it is working but it really
isn't (something to do with shared assemblies, but it isn't really
important). You should be simply using the site warmer feature of ASP.NET to
keep the application warm.

It's not an ASP.NET application. It's a command line app, that gets
executed every 10 minutes.
Jan 17 '08 #3
If this is a console app, you can ngen. I saw server in your post and
immediately assumed server application. Sorry.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------

<PS*******@mail.nuwrote in message
news:75**********************************@u10g2000 prn.googlegroups.com...
On Jan 17, 2:31 am, "Alvin Bruney [ASP.NET MVP]" <www.lulu.com/owc>
wrote:
No,ngenis not intended for server type applications. In fact, the ASP.NET
engine will simply ignore thengenimage and revert back to the original
image. It won't tell you so, so you might think it is working but it
really
isn't (something to do with shared assemblies, but it isn't really
important). You should be simply using the site warmer feature of ASP.NET
to
keep the application warm.

It's not an ASP.NET application. It's a command line app, that gets
executed every 10 minutes.

Jan 18 '08 #4
If you're doing the same thing over and over again, NGEN will only make the
first invocation of the application quicker. The JIT compiles code as it
runs, once it runs it keeps that compiled code around to be reused for the
next time you run the application.

--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
"PS*******@mail.nu" wrote:
On Jan 17, 2:31 am, "Alvin Bruney [ASP.NET MVP]" <www.lulu.com/owc>
wrote:
No,ngenis not intended for server type applications. In fact, the ASP.NET
engine will simply ignore thengenimage and revert back to the original
image. It won't tell you so, so you might think it is working but it really
isn't (something to do with shared assemblies, but it isn't really
important). You should be simply using the site warmer feature of ASP.NET to
keep the application warm.


It's not an ASP.NET application. It's a command line app, that gets
executed every 10 minutes.
Jan 18 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William Reyes | last post by:
I have a question regarding the use of ngen.exe and dedployment. I want to make sure I understand this correctly. If I create an app that has an .exe as well as a couple of .dll's. I can create...
2
by: Wol | last post by:
I have two assemblies, A.dll and B.dll. A.dll contains two methods. One method, UsesB, uses a type from B.dll whereas the other, DoesNotUseB, does not. To cache a native image of A.dll with...
2
by: JMMB | last post by:
Just a confirmation. NGen generates native code when i install the windows application on the client or when I run it for the first time? thanks,
1
by: fleimeris | last post by:
hello, i am preparing for 70-316 exam and i'm not quite sure about the answer to the following question. i want to use ngen.exe to boost the performance of my application. however, when should i...
1
by: Mark | last post by:
I was hoping to use nGen to speed up the time taken for our web site to start running. However, on the web we found this quote: "NGen is not recommend for Asp.Net because the assemblies NGen...
1
by: Sameeksha | last post by:
Hi everyone, I have observed that the ngen process appears in the list of processes in taskmgr while .net framework 1.1 gets installed. This process consumes 0-50% of cpu and 0-20K of RAM. I...
0
by: lissbpp | last post by:
Hello, Working in .Net 2.0 using NGen to speed up both my warm and cold startup load times. NGen works beautifully for my application; however, it seams that the native image cache is not...
0
by: lissbpp | last post by:
Hello, Working in .Net 2.0 using NGen to speed up both my warm and cold startup load times. NGen works beautifully for my application; however, it seams that the native image cache is not...
2
by: whezker | last post by:
Hi everybody. I'm trying to use the ngen tool from framework 2.0, to accelerate the load runtime of my app. I'll explain here what I'm doing. First I copy&paste the ngen.exe to the Bin folder of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.