ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Microsoft Related >> Dot Net >> Dot Net AllOther
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions (204)
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions (75)
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions (83)
 Dot Net General interview questions  Dot Net General Interview Questions (321)
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions (178)
Question
Explain in-proc,out-proc and sql server.
 Question Submitted By :: Dot-Net-AllOther
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
In case of InProc, state is maintained within the managed
memory of the ASP.NET process whereas in case of OutProc
mode session is managed by an external resource (
StateServer or SQL Server )
In case of InProc, state is maintained within the managed
memory of the ASP.NET process whereas in case of OutProc
mode session is managed by an external resource (
StateServer or SQL Server )


This EggheadCafe article -
http://www.eggheadcafe.com/articles/20021016.asp has a good
comparison

Storage location

* InProc - session kept as live objects in web server
(aspnet_wp.exe). Use "cookieless" configuration in
web.config to "munge" the sessionId onto the URL (solves
cookie/domain/path RFC problems too!)
* StateServer - session serialized and stored in memory
in a separate process (aspnet_state.exe). State Server can
run on another machine
* SQLServer - session serialized and stored in SQL server

Performance

* InProc - Fastest, but the more session data, the more
memory is consumed on the web server, and that can affect
performance.
* StateServer - When storing data of basic types (e.g.
string, integer, etc), in one test environment it's 15%
slower than InProc. However, the cost of
serialization/deserialization can affect performance if
you're storing lots
of objects. You have to do performance testing for
your own scenario.
* SQLServer - When storing data of basic types (e.g.
string, integer, etc), in one test environment it's 25%
slower than InProc. Same warning about serialization as in
StateServer.

Robustness

* InProc - Session state will be lost if the worker
process (aspnet_wp.exe) recycles, or if the appdomain
restarts. It's because session state is stored in the memory
space of an appdomain. For details, see KB324772.
* StateServer - Solve the session state loss problem in
InProc mode. Allows a webfarm to store session on a central
server. Single point of failure at the State Server.
* SQLServer - Similar to StateServer. Moreover, session
state data can survive a SQL server restart, and you can
also take advantage of SQL server failover cluster, after
you've followed instructions in KB 311029.
 
Is This Answer Correct ?    64 Yes 1 No
Sajid
 
Answer
# 2
in-proc-----session kept as a live object in the web server
sql server---session serialized and stored in sql server(in
tempdb)
 
Is This Answer Correct ?    32 Yes 13 No
Vimal
 
 
 
Answer
# 3
Inproc- In this the information(session) is stored in
aspnet_wp.exe.Which is lost when the application is closed.

Outproc-outproc statemanagement are state server and sql
server.

sql server- the session is stored in sql server.

state server-The session is stored in aspnet_state.exe.
 
Is This Answer Correct ?    16 Yes 5 No
Ranjana Tyagi
 
Answer
# 4
in proc-by default the session mode is in proc,the session
object is maintained in the current application domain or we
can say in the web server memory
advantage-fast,easy to use
disadvantage-not support web garden,server restart session lose

out proc-here we maintain the session in any external source
like sql server or aspnet_state.exe
advantage-session data is not lose,when server
reboot,support web garden
dis-hard to implement,require serial,deserialization
 
Is This Answer Correct ?    4 Yes 1 No
Manoj Bhatt
 

 
 
 
Other Dot Net AllOther Interview Questions
 
  Question Asked @ Answers
 
Will finally block exec if we write an return statement to a try block???????   3
while developing a asp.net 2.0 ajax application how to maitain and check the ACID property for each transaction Aviva 2
What is CLR,MSIL and Jit Compiler and their roll in .net PCS 1
Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component   2
In LINQ TO SQL if it is possible to select the top 5 records from the particular table using select top 5. Agiline 1
when garbage collector come into picture. ?   2
Explain in-proc,out-proc and sql server. Ness-Technologies 4
How can i create only one instance of class and thus doesn't allow creating any more instances?   1
How to call .NET Web service from Java Appl. & Why ?   1
HI THIS IS THIRUMAL. I AM COMPLETED MY MCA IN 2009 WITH 64%. NOW I AM LOOKING FOR A JOB(FRESHER)IN HYDERABAD.PLEASE IF YOU FIND ANY OPENINGS IN ANY COMPANY SEND IT TO MY MAIL ID PLEASE.. SKILL SET : C,C++,C#.NET,ASP.NET,ADO.NET,SQL SERVER, SSIS,SSRS EMAIL ID : THIRU104@GMAIL.COM THANKS & REGARDS D.THIRUMAL   1
Difference between abstract class and interface HCL 100
which of the following statement is true about gac. a)it is being handled by .net framwork b)It is special folder c)it can have files with same name etc etc. Honeywell 4
 
For more Dot Net AllOther Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com