To ngen or not to ngen?

To ngen or not to ngen?

am 16.01.2008 22:13:18 von PSiegmann

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?

Re: To ngen or not to ngen?

am 17.01.2008 02:31:10 von Alvin Bruney

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
-------------------------------------------------------



wrote in message
news:86c9af4d-67c2-46f0-9054-283f2466a80f@e25g2000prg.google groups.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?

Re: To ngen or not to ngen?

am 17.01.2008 04:08:57 von smar

"Alvin Bruney [ASP.NET MVP]" wrote in message
news:%23R60miKWIHA.748@TK2MSFTNGP04.phx.gbl...
> 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.

Hmm.... This is the first time I've heard that NGen on ASP .NET projects
doesn't do anything. Can you point me to some documentation about that?
Also, what is the "site warmer" feature you are referring to?

Thanks.


>
> --
>
> 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
> -------------------------------------------------------
>
>
>
> wrote in message
> news:86c9af4d-67c2-46f0-9054-283f2466a80f@e25g2000prg.google groups.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?
>

Re: To ngen or not to ngen?

am 17.01.2008 07:24:00 von MisbahArefin

perhaps he means precompiling the asp.net site
http://msdn2.microsoft.com/en-us/library/ms227972.aspx


--
Misbah Arefin



"Scott M." wrote:

>
> "Alvin Bruney [ASP.NET MVP]" wrote in message
> news:%23R60miKWIHA.748@TK2MSFTNGP04.phx.gbl...
> > 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.
>
> Hmm.... This is the first time I've heard that NGen on ASP .NET projects
> doesn't do anything. Can you point me to some documentation about that?
> Also, what is the "site warmer" feature you are referring to?
>
> Thanks.
>
>
> >
> > --
> >
> > 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
> > -------------------------------------------------------
> >
> >
> >
> > wrote in message
> > news:86c9af4d-67c2-46f0-9054-283f2466a80f@e25g2000prg.google groups.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?
> >
>
>
>

Re: To ngen or not to ngen?

am 17.01.2008 18:10:37 von PSiegmann

On Jan 17, 2:31=A0am, "Alvin Bruney [ASP.NET MVP]"
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 reall=
y
> 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.

Re: To ngen or not to ngen?

am 18.01.2008 00:37:22 von smar

No, I believe he's talking about NGen. Precompiled web sites are a very
different issue.


"Misbah Arefin" wrote in message
news:A4980718-FF80-4B85-8B82-428176B24EC3@microsoft.com...
> perhaps he means precompiling the asp.net site
> http://msdn2.microsoft.com/en-us/library/ms227972.aspx
>
>
> --
> Misbah Arefin
>
>
>
> "Scott M." wrote:
>
>>
>> "Alvin Bruney [ASP.NET MVP]" wrote in message
>> news:%23R60miKWIHA.748@TK2MSFTNGP04.phx.gbl...
>> > 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.
>>
>> Hmm.... This is the first time I've heard that NGen on ASP .NET projects
>> doesn't do anything. Can you point me to some documentation about that?
>> Also, what is the "site warmer" feature you are referring to?
>>
>> Thanks.
>>
>>
>> >
>> > --
>> >
>> > 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
>> > -------------------------------------------------------
>> >
>> >
>> >
>> > wrote in message
>> > news:86c9af4d-67c2-46f0-9054-283f2466a80f@e25g2000prg.google groups.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?
>> >
>>
>>
>>

Re: To ngen or not to ngen?

am 18.01.2008 01:01:07 von Alvin Bruney

http://msdn2.microsoft.com/en-us/library/ms227972.aspx
http://support.microsoft.com/kb/331979

--

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
-------------------------------------------------------



"Misbah Arefin" wrote in message
news:A4980718-FF80-4B85-8B82-428176B24EC3@microsoft.com...
> perhaps he means precompiling the asp.net site
> http://msdn2.microsoft.com/en-us/library/ms227972.aspx
>
>
> --
> Misbah Arefin
>
>
>
> "Scott M." wrote:
>
>>
>> "Alvin Bruney [ASP.NET MVP]" wrote in message
>> news:%23R60miKWIHA.748@TK2MSFTNGP04.phx.gbl...
>> > 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.
>>
>> Hmm.... This is the first time I've heard that NGen on ASP .NET projects
>> doesn't do anything. Can you point me to some documentation about that?
>> Also, what is the "site warmer" feature you are referring to?
>>
>> Thanks.
>>
>>
>> >
>> > --
>> >
>> > 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
>> > -------------------------------------------------------
>> >
>> >
>> >
>> > wrote in message
>> > news:86c9af4d-67c2-46f0-9054-283f2466a80f@e25g2000prg.google groups.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?
>> >
>>
>>
>>

Re: To ngen or not to ngen?

am 18.01.2008 01:02:44 von Alvin Bruney

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
-------------------------------------------------------



wrote in message
news:759bf13b-c366-4d60-ba96-1e7e92565b08@u10g2000prn.google groups.com...
On Jan 17, 2:31 am, "Alvin Bruney [ASP.NET MVP]"
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.

Re: To ngen or not to ngen?

am 18.01.2008 21:59:02 von PRSoCo

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#


"PSiegmann@mail.nu" wrote:

> On Jan 17, 2:31 am, "Alvin Bruney [ASP.NET MVP]"
> 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.
>

Re: To ngen or not to ngen?

am 19.01.2008 00:36:10 von smar

Thanks!


"Alvin Bruney [ASP.NET MVP]" wrote in message
news:766F6498-1038-42C8-8F1E-93FFE970D9BA@microsoft.com...
> http://msdn2.microsoft.com/en-us/library/ms227972.aspx
> http://support.microsoft.com/kb/331979
>
> --
>
> 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
> -------------------------------------------------------
>
>
>
> "Misbah Arefin" wrote in message
> news:A4980718-FF80-4B85-8B82-428176B24EC3@microsoft.com...
>> perhaps he means precompiling the asp.net site
>> http://msdn2.microsoft.com/en-us/library/ms227972.aspx
>>
>>
>> --
>> Misbah Arefin
>>
>>
>>
>> "Scott M." wrote:
>>
>>>
>>> "Alvin Bruney [ASP.NET MVP]" wrote in message
>>> news:%23R60miKWIHA.748@TK2MSFTNGP04.phx.gbl...
>>> > 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.
>>>
>>> Hmm.... This is the first time I've heard that NGen on ASP .NET
>>> projects
>>> doesn't do anything. Can you point me to some documentation about that?
>>> Also, what is the "site warmer" feature you are referring to?
>>>
>>> Thanks.
>>>
>>>
>>> >
>>> > --
>>> >
>>> > 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
>>> > -------------------------------------------------------
>>> >
>>> >
>>> >
>>> > wrote in message
>>> > news:86c9af4d-67c2-46f0-9054-283f2466a80f@e25g2000prg.google groups.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?
>>> >
>>>
>>>
>>>
>