Memory used by servlet

hi all,
i am new to servlets , can someone pls tell me that how can i find that how much memory is my servlet using .iam using tomcat 5.
thanx

http://localhost:8080/manager/status/all
tells you how mush memory the jvm running
tomcat and all the servlets is using
it also tells you the processing time details
for each servlet in each webapp
you can write code into your servlet to calculate
the amount of memory it is using and print it
to the logs

Similar Messages

  • Can i use a servlet for as a

    the SDN,
    I need to create a middleware server that reads requests from a database then forwards these requests to the "real" servers. The reason i referred to the app as a "middleware SERVER" is because this app will be started once and will run forever, (if no problems come up), but actually the "middleware server" that i need to create will be a "client" to the "real servers" which will process the requests - so i shall refer to the system that i need to design as a "forwarding client" instead of "middleware server" - to avoid confusion.
    After my "Forwarding Client" reads a request from the DB it wil forward the request to the servers using XMLRPC (over http).
    I would like to know from those who know more : which is the better approach to solving this problem.
    According to me these are the closest options to designing the "Forwarding Client":
    1) create a java application that uses the "custom networking" packages of java to forward the data to the server, see packages here: http://java.sun.com/docs/books/tutorial/networking/TOC.html#sockets
    2) develop the functionality of my "Forwarding Client" in a servlet. This is easier since forwarding of the data (using HTTP POST) is very easy in servlets.
    But there is a problem that could arise, and this brings out my main question:
    -> since this application will need to run for a very long time (probably perpetually) - are there any limitations of having a servlet run for a very long period of time? any memory issues or any other potential issues? What about container issues? Are servlet engines such as tomcat designed for such kinds of servlets?
    To help understand the scenario, this is an overview of the logic:
    <code>
    do
    select one unprocessed request from the DB
    process the request -by forwarding the request to the server
    receive and read the response from the server
    save the response in the DB
    while(true)
    </code>
    Any suggestions will be appreciated.
    Faz

    I will try to answer in english for all readers (I am french). It's a very complex problem. If you want to use a servlet as a proxy it will not be "invisible" for end-user. All your calls will look like this :
    http://www.foo.com/ProxyServlet?realURL=http://www.foo.com/RealServlet
    Did you accept this kind of solution? If not, can you explain me what exactly you have to do.
    For the second question : you have to re-write all your request using HTTPURLConnection.
    Simon Pierre NOLIN

  • Memory issue in servlet application in a tomcat  container

    Hi ,
    i am a newbie in tomcat server and webapplication . we have a simple servlet application running in a tomcat container . which handles more than 10 requests in a sec . in the application we are storing the recieved xml in the server .
    the used memory size was gradually inceased upto 11 GB out of 12GB . when i killed all java also the memory used was not released .
    28390: /usr/java/jdk1.5.0_06/bin/java -Xms128m -Xmx1536m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/local/tomcat//conf/logging.properties -Djava.endorsed.dirs=/usr/local/tomcat//common/endorsed -classpath :/usr/local/tomcat//bin/bootstrap.jar:/usr/local/tomcat//bin/commons-logging-api.jar -Dcatalina.base=/usr/local/tomcat/ -Dcatalina.home=/usr/local/tomcat/ -Djava.io.tmpdir=/usr/local/tomcat//temp org.apache.catalina.startup.Bootstrap start
    Address Kbytes RSS Anon Locked Mode Mapping
    00283000 60 - - - r-x-- libresolv-2.5.so
    00292000 4 - - - r-x-- libresolv-2.5.so
    00293000 4 - - - rwx-- libresolv-2.5.so
    00294000 8 - - - rwx-- [ anon ]
    009b2000 104 - - - r-x-- ld-2.5.so
    009cc000 4 - - - r-x-- ld-2.5.so
    009cd000 4 - - - rwx-- ld-2.5.so
    009d0000 1268 - - - r-x-- libc-2.5.so
    00b0d000 8 - - - r-x-- libc-2.5.so
    00b0f000 4 - - - rwx-- libc-2.5.so
    00b10000 12 - - - rwx-- [ anon ]
    00b15000 8 - - - r-x-- libdl-2.5.so
    00b17000 4 - - - r-x-- libdl-2.5.so
    00b18000 4 - - - rwx-- libdl-2.5.so
    00b1b000 148 - - - r-x-- libm-2.5.so
    00b40000 4 - - - r-x-- libm-2.5.so
    00b41000 4 - - - rwx-- libm-2.5.so
    00b44000 76 - - - r-x-- libpthread-2.5.so
    00b57000 4 - - - r-x-- libpthread-2.5.so
    00b58000 4 - - - rwx-- libpthread-2.5.so
    00b59000 8 - - - rwx-- [ anon ]
    00c7f000 76 - - - r-x-- libnsl-2.5.so
    00c92000 4 - - - r-x-- libnsl-2.5.so
    00c93000 4 - - - rwx-- libnsl-2.5.so
    00c94000 8 - - - rwx-- [ anon ]
    08048000 60 - - - r-x-- java
    08057000 8 - - - rwx-- java
    0977a000 14444 - - - rwx-- [ anon ]
    47da4000 12 - - - rwx-- [ anon ]
    47da7000 504 - - - rwx-- [ anon ]
    47e25000 12 - - - rwx-- [ anon ]
    47e28000 504 - - - rwx-- [ anon ]
    47ea6000 12 - - - ----- [ anon ]
    47ea9000 504 - - - rwx-- [ anon ]
    47f27000 12 - - - ----- [ anon ]
    47f2a000 504 - - - rwx-- [ anon ]
    47fa8000 12 - - - ----- [ anon ]
    47fab000 504 - - - rwx-- [ anon ]
    48029000 12 - - - ----- [ anon ]
    4802c000 504 - - - rwx-- [ anon ]
    480aa000 12 - - - ----- [ anon ]
    480ad000 504 - - - rwx-- [ anon ]
    4812b000 12 - - - ----- [ anon ]
    4812e000 504 - - - rwx-- [ anon ]
    481ac000 12 - - - ----- [ anon ]
    481af000 504 - - - rwx-- [ anon ]
    4822d000 12 - - - ----- [ anon ]
    48230000 504 - - - rwx-- [ anon ]
    482ae000 12 - - - rwx-- [ anon ]
    482b1000 504 - - - rwx-- [ anon ]
    4832f000 12 - - - ----- [ anon ]
    48332000 504 - - - rwx-- [ anon ]
    4d201000 204 - - - r-xs- catalina-cluster.jar
    4d234000 108 - - - r-xs- commons-modeler.jar
    4d24f000 8 - - - r-xs- servlets-invoker.jar
    4d251000 88 - - - r-xs- tomcat-http.jar
    4d267000 164 - - - r-xs- tomcat-ajp.jar
    4d290000 24 - - - r-xs- servlets-webdav.jar
    4d296000 24 - - - r-xs- catalina-ant-jmx.jar
    4d29c000 20 - - - r-xs- tomcat-coyote.jar
    4d2a1000 20 - - - r-xs- tomcat-jkstatus-ant.jar
    4d2a6000 64 - - - r-xs- catalina-storeconfig.jar
    4d2b6000 28 - - - r-xs- catalina-ant.jar
    4d2bd000 20 - - - r-xs- servlets-default.jar
    4d2c2000 48 - - - r-xs- naming-resources.jar
    4d2ce000 52 - - - r-xs- jsp-api.jar
    4d2db000 40 - - - r-xs- naming-factory.jar
    4d2e5000 76 - - - r-xs- jasper-runtime.jar
    4d2f8000 112 - - - r-xs- commons-el.jar
    4d314000 96 - - - r-xs- servlet-api.jar
    4d32c000 400 - - - r-xs- jasper-compiler.jar
    4d390000 152 - - - r-xs- naming-factory-dbcp.jar
    4d3b6000 412 - - - r-xs- mysql-connector-java-3.1.10-bin.jar
    4d41d000 1188 - - - r-xs- jasper-compiler-jdt.jar
    4d546000 40 - - - r-xs- tomcat-i18n-en.jar
    4d550000 36 - - - r-xs- tomcat-i18n-es.jar
    4d559000 32 - - - r-xs- tomcat-i18n-fr.jar
    4d561000 36 - - - r-xs- tomcat-i18n-ja.jar
    4d56a000 784 - - - r-xs- localedata.jar
    4d62e000 172 - - - r-xs- sunpkcs11.jar
    4d659000 152 - - - r-xs- sunjce_provider.jar
    4d67f000 4 - - - ----- [ anon ]
    4d680000 1528 - - - rwx-- [ anon ]
    4d7fe000 8 - - - ----- [ anon ]
    this is the total java process running in the system . i am not able to identify the process - r-x-- [ anon ] ..( i deleted more anon process as the character exceeds more ) please advise me to find a solution for this ..
    thanks
    Dhinesh

    bedhinesh wrote:
    the used memory size was gradually inceased upto 11 GB out of 12GB . when i killed all java also the memory used was not released . Some possible reasons.
    1. You are using a memory tool and are incorrectly reading the results.
    2. You are using JNI or using a third party JNI which uses an unusual system resource and that is not cleaning up that resource.
    3. One very unusual case, you have a log file (or some other file) which is being posted into the same place in the file system as the OS swap space. When that happens the "memory" fills up.

  • How to limit the maximum memory used by the JVM

    Dears
    we enabled sybase webservice and started it , and now find the process is running much memory,
    how could I limit the maximum memory used by the JVM ?
    aidcd02:/> prstat -p 8164 -p 17768
       PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP      
      8164 sybase   1079M  848M sleep   59    0   0:10:44 0.0% java/30  
    aidcd02:/> pargs 8164
    8164:   /sybase/shared/JRE-6_0_24/bin/java -Dsybase.home=/sybase -Docs.home=OCS-15_0 -D
    argv[0]: /sybase/shared/JRE-6_0_24/bin/java
    argv[1]: -Dsybase.home=/sybase
    argv[2]: -Docs.home=OCS-15_0
    argv[3]: -Dcom.sybase.ase.ws.libtcl=
    argv[4]: -classpath
    argv[5]: /sybase/WS-15_0/lib/axis.jar:/sybase/WS-15_0/lib/jaxrpc.jar:/sybase/WS-15_0/lib/saaj.jar:/sybase/WS-15_0/lib/commons-logging-1.0.4.jar:/sybase/WS-15_0/lib/commons-discovery-0.2.jar:/sybase/WS-15_0/lib/log4j-1.2.4.jar:/sybase/WS-15_0/lib/wsdl4j-1.5.1.jar:/sybase/jConnect-6_0/classes/jconn3.jar:/sybase/jConnect-6_0/classes/jTDS3.jar:/sybase/WS-15_0/lib/xercesImpl.jar:/sybase/WS-15_0/lib/xmlParserAPIs.jar:/sybase/WS-15_0/lib/server.jar:/sybase/WS-15_0/lib/sqlx.jar:/sybase/WS-15_0/lib/flexlm.jar:/sybase/WS-15_0/lib/servlet-api-2.5-20081211.jar:/sybase/WS-15_0/lib/jetty-6.1.22.jar:/sybase/WS-15_0/lib/jetty-sslengine-6.1.22.jar:/sybase/WS-15_0/lib/jetty-util-6.1.22.jar:/sybase/WS-15_0/lib/tools.jar:/sybase/WS-15_0/lib/jcert.jar:/sybase/WS-15_0/lib/jnet.jar:/sybase/WS-15_0/lib/jsse.jar:/sybase/WS-15_0/lib/jce1_2_2.jar:/sybase/WS-15_0/lib/sunjce_provider.jar:/sybase/WS-15_0/lib/ws.jar:/sybase/shared/lib/dsparser.jar:/sybase/WS-15_0/props:/sybase/WS-15_0/producer/WEB-INF
    thanks.

    You can limit the maximum memory used via command line options to the VM.
    Noting of course that typically if you are in fact actually using that memory that reducing it is going to have some negative impact on your application including catastrophic failure.
    Conversely if the application is not in fact actively using that memory then limiting it just because some tool reports that the OS has reserved it then limiting it is pointless. 

  • Problem with displaying BLOB images on JSP page using a servlet

    hi. I have a big problem with displaying BLOB images using JSP. I have a servlet that connects to the oracle database, gets a BLOB image , reads it, and then displays it using a BinaryStream. The problem is , this works only when i directly call that servlet, that is http://localhost:8080/ImageServlet. It doesn't work when i try to use that servlet to display my image on my JSP page (my JSP page displays only a broken-image icon ) I tried several coding approaches with my servlet (used both Blob and BLOB objects), and they work just fine as long as i display images explicitly using only the servlet.
    Here's what i use : ORACLE 10g XE , Eclipse 3.1.2, Tomcat 5.5.16 , JDK 1.5
    here is one of my image servlet's working versions (the essential part of it) :
                   BLOB blob=null;
              rset=st.executeQuery("SELECT * FROM IMAGES WHERE ID=1");
              while (rset.next())
                   blob=((OracleResultSet)rset).getBLOB(2);
              response.reset();
              response.setContentType("image/jpeg");
              response.addHeader("Content-Disposition","filename=42.jpeg");
                    ServletOutputStream ostr=response.getOutputStream();
                   InputStream istr=blob.getBinaryStream(1L);
                    int size=blob.getBufferSize();
              int len=-1;
                    byte[] buff = new byte[size];
                         while ((len=istr.read( buff ))!=-1 ) {
                   ostr.write(buff,0,len);
             response.flushBuffer();
             ostr.close(); and my JSP page code :
    <img src="/ImageServlet" border="0"  > If you could just tell me what i'm doing wrong here , or if you could show me your own solutions to that problem , i would be very greatful ,cos i'm realy stuck here , and i'm rather pressed for time too. Hope someone can help.

    I turns out that it wasn't that big of a problem after all. All i had to do was to take the above code and place it into another JSP page instead of into a servlet like i did before. Then i just used that page as a source for my IMG tag in my first JSP. It works perfectly well. Why this doesn't work for servlets i still don't know, but it's not a problem form me anymore . Ofcourse if someone knows the answer , go ahead and write. I would still appriceatte it.
    here's the magic tag : <img src="ImageJSP.jsp" border="0"  > enjoy : )

  • High memory use when checking downloads folder through browser

    High memory use when checking downloads folder through browser.
    I have a total of 3 DDR2 Gbytes of ram. Pentium(R) Dual-Core CPU T4500 @ 2.30GHz Win 7 home pr. 64bit. Firefox 27.0 beta
    I right click on a file to "open containing folder" from the drop down menu in downloads.
    When the folder has been opened, explorer is trying to index the folder (which it never does completely or well after 5 minutes I close the folder and shut down the dllhost process cause laptop is blazing hot) and memory keeps increasing till no more is available.
    I checked task manager and see that dllhost is the particular process that is causing the spike in memory usage even after closing the folder I right click and stop the process and memory is restored after awhile.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?

    Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?
    I am acquiring images and data to a buffer on the edge of the while loop, and am finding that the crashing of the program is unpredictable, but almost always due to a memory saturation when the buffers gets too big.
    I have attached the VI.
    Thanks for the help
    Attachments:
    new_control_and_acquisition_program.vi ‏946 KB

    Take a look at this document that discusses how to monitor IMAQ memory usage:
    http://digital.ni.com/public.nsf/websearch/8C6E405861C60DE786256DB400755957
    Hope this helps -
    Julie

  • Long running reports using java servlets

    Hello,
    I'm running into a problem using java servlets to produce database reports and sending them back to the client browser as excel or html. The problem comes into play when the user has submitted two reports then goes to run a third and the browser hangs. I realized now that this is because of the two active connections that the user already has to the app server. Does anyone have any suggestions on how to get around this? I'm trying to now write the report to the server, and provide the browser with a url, but it seams as though the connection isn't totally closed even though I close the response printwriter.... Any suggestions would be greatly appreciated....

    Unfortunately I dont have an answer to your question, but:
    If the reports are large/long running, should they be generated on demand? You could schedule the reports to be generated every day, month or whenever appropriate, stored on the server and then quickly pulled by the user whenever needed.

  • How to reduce memory use on my iMac

    How to reduce memory use on my iMac, OS X Yosemite, 2.7 GHz Intel Core i5
    8 GB memory
    Running very slowly, and the little spinning ball showing up.
    How do I clean up my IMac please?
    Should I use MacKeep or any clean up apps?

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How to display an xml file using a servlet with the styles given in an XSL

    Dear Developer...
    i have xml and xsl files.
    Now i want to display the html output produced by the xsl and xml using a servlet...give me any samplecode.

    ... except for the "using XSLT" part. But that doesn't make sense anyway because XSLT doesn't display anything, it just transforms data.

  • CFMX 6.1's Virtual Memory Use problem!!

    I appologise for the long post in advance...
    Ok... so I have this script that, using cfdirectory, will
    check a directory for any files that may have been uploaded, if
    there are files, it loops through the results and reads the files
    one at a time, line by line, using the FileReader.cfc (Uses the
    Java FileInputStream, InputStreamReader, and BufferedReader to
    provide a way to incrementally read large files). The files are
    just pipe "|" delimited data, each line represents a record for a
    db table.
    Now as it's reading each line, it will perform some basic
    string parsing to clean up the file line to make sure the data is
    valid, blah blah blah and then it will write that "cleaned" line to
    another file using FileWriter.cfc (Java component once again). Once
    it's completely done reading the original file, it will close it
    and it will open the new "cleaned" version of the file, read it
    (FileReader.cfc), create an INSERT statement and then update the
    database table.
    Now... this all works GREAT... until it has to loop through
    more than a few files... 3 - 4 files are NO problem! works like a
    charm, but throw 6 - 8 files at it and it dies, not a timeout mind
    you but an actual "java.lang.OutOfMemoryError" (now, I've tried
    making all the files exactly the same (just changed the name) and
    the weird thing is, it takes longer and longer to process each as
    it goes through the loop... I have the script write some stats as
    it's looping:
    FILE 1 STATS
    Name: COA0607_Intranet1.DAT
    Status: Import Successfull
    Line Count: 32,971
    Processing Time: 74,237ms
    FILE 2 STATS
    Name: COA0607_Intranet2.DAT
    Status: Import Successfull
    Line Count: 32,971
    Processing Time: 82,018ms
    FILE 3 STATS
    Name: COA0607_Intranet3.DAT
    Status: Import Successfull
    Line Count: 32,971
    Processing Time: 94,476ms
    FILE 4 STATS
    Name: COA0607_Intranet4.DAT
    Status: Import Successfull
    Line Count: 32,971
    Processing Time: 145,108ms
    I know what you guy are probably thinking; "Woah man... CF
    isn't really meant to do that kind of processing...", I know, trust
    me I know... however, I really neeeeeed it too lol.
    Ok, so as the script is running, I watch the Virtual Memory
    use of jrun.exe, processing say 3 - 4 of these files brings up the
    usage to approx 300,000k which yes, is a LOT but that's fine...
    this process is meant to run at night via a Scheduled Task...
    When I run more than 4 files, things start to get ugly, keep
    in mind that these are EXACTLY the same files just re-named
    differently. The script will start lagging BIG time and on the last
    file (usually the last file) I'll see the memory usage spike from
    350,000K all the way up to 600,000K and that's when it throws the
    "java.lang.OutOfMemoryError" and dies... I've tried commenting out
    the part of the script that updates the db, but still get the same
    problem...
    So... what gives? How come CF Server does this??? I mean, it
    runs fine for the first few files... and then WAM, it dies... sorry
    for the long post... any insight here is VERY much appreciated...
    it would be AWESOME if the wonderful folks at Adobe could shed some
    light on this for me : )
    CFMX 6.1 version: 6,1,0,83762
    Windows XP Pro SP2
    Intel P4 2.8Ghz
    1Gb of Ram

    quote:
    Originally posted by:
    Mr Black
    300M memory usage while using "incremental" file reader??
    Looks like it is "incremental" only in the sense that it increments
    memory usage. Did you try non-Java C/C++ file reader tags?
    Well I did try cffile originally... and it didn't even run...
    lol

  • Getting  save as dialog while downloading using download servlet

    Hi Folks,
    I am developing a web based video download application.In this i intend to download the video file by calling a download servlet.
    Though the application works ,that is it downloads the file, the video file is straight away being played by the media player.My objective is to save it in the client machine at the desired location of the hard disk and then play the same later at cient's convenience. This is not happenening with my application.
    Pl suggest me as how to get the save as dialog box to save the video file at will.
    The site is to be lauched in a weeks time.Pl help!!!
    thanks and regards
    sathiyam K G

    Hi rupak,
    Thanks for the tip.I actually did all the things u said.But the difference is that i rely on http download.
    I mean i do not use the servlet output stream to download the video file.If i do so it takes about 20 mins for a 10 MB sample file,to be downloaded via a broad band T1 link.
    So i just use href to depend on http by which the download speed is accelerated and my one clip of video of 100MB average size can be downloaded in about 15 min. duration.
    If this is not the correct way of working for the video download will u pl suggest me any other way through servlet, i can download with the above specified speed.
    i am clear if i use the servlet output stream the download process is deadly slow.
    so pl suggest!!
    thanks again
    regards
    sathiyam K G

  • When is it appropriate to use a servlet in a JSP/JSF environment?

    I have inherited a fairly old JSP-based application. I know that I need to update its technologies, in particular the use of AJAX so that I don't need to keep refreshing the page each time I want more data from the server. The problem is that I don't know a great deal about other technologies. There seem to be so many conflicting opinions about the way to go regarding servlets and JSP and JSF (and possibly JavaBeans). I am probably going to start using JSF and AJAX. I mention this to give you some background info. My real question is: when is best/appropriate to use a servlet? From what I have seen I do not want to use a servlet for generating HTML output - that seem just so last decade! But do they still have a good use over more modern technologies? Also, when is it appropriate to use JavaBeans? Are JavaBeans a thing of the past (or just plain inappropriate) for web applications?
    Regards,

    I suggest going to the bookstore and looking for a book on JSF and reading it cover to cover. It may tell you where servlets come into the picture (if at all). I suggest paying attention to MVC design that it discusses, and working through the examples before working on your project (assuming you have the time). Then creating a simple project and refactor it over and over to meet MVC.
    For your project, I suggest just doing ONE JSF page (and its underlying database access) and refactor it over and over again (MVC) before doing the other JSF pages. This way, you dont have to refactor 34 JSF pages to correct the same mistake appearing in all the pages (saves a LOT of time).
    I don't know enough about AJAX to really comment on it. However, I would ask myself if refreshing the JSF page is really enough of a concern for your end-users to make it worth while to use AJAX on this project.

  • Oracle 11g - Memory used for sorting

    Hi everyone,
    I would like to know how I could analyze memory used for sorting in Oracle 11g. When I run the below query, it returns 1531381.
    select value from v$sysstat where name like 'sorts (memory)';But when I check sort_area_size parameter from v$parameter, it returns 65536. Does it mean my database is using more memory for sorting than sort_area_size. Or is the way I interpret v$sysstat view and sort_area_size wrong? What is the best way to monitor the memory usage for sorting? Thanks in advance.
    Regards,
    K.H
    Edited by: K Hein on Apr 5, 2012 8:16 PM

    check the valuse of pga_aggregate_target
    http://docs.oracle.com/cd/B19306_01/server.102/b14237/initparams157.htm
    Note:
    Oracle does not recommend using the SORT_AREA_SIZE parameter unless the instance is configured with the shared server option. Oracle recommends that you enable automatic sizing of SQL working areas by setting PGA_AGGREGATE_TARGET instead. SORT_AREA_SIZE is retained for backward compatibility.
    What is the best way to monitor the memory usage for sorting? try v$sort_usage
    or v$tempseg_usage
    col sid_serial for a44
    col size for a22
    col SID_SERIAL for a22
    SELECT b.tablespace,
            ROUND(((b.blocks*p.value)/1024/1024),2)||' MB' "SIZE",
            a.sid||','||a.serial# SID_SERIAL,
            a.username,a.osuser,
            a.program
       FROM sys.v_$session a,
            sys.v_$sort_usage b,
            sys.v_$parameter p
      WHERE p.name  = 'db_block_size'
        AND a.saddr = b.session_addr
    ORDER BY b.blocks;

  • How to use a servlet adapter ?

    Hi all,
    I try to use the servlet adapter, but documentation is not very usefull on this point (like on many other point).
    The first step in documentation is : Create a directory in the classpath oracle.panama.adapter.servlet for the .class
    file. The MasterService creation should go smoothly (if you pray I suppose) if you also have the .class file in a similar directory where you
    are running the Service Designer.
    Questions :
    - I dont understand ' create a directory in the classpath oracle.panama.adapter.servlet'.
    What does it mean ?
    - How can I make the same thing on the client which running the Service Designer ?
    All input are welcome.
    rgds,

    Create your Servlet under the directory
    %ORACLE_HOME%\panama\server\classes\oracle\panama\adapter\servlet.
    The servlet should have the package declaration
    package oracle.panama.adapter.servlet;
    Copt the class file to the above mentioned directory.
    Then create a service using this class.
    Give the entire class name for the service
    eg
    package oracle.panama.adapter.servlet.Test
    where test is the servlet class name.
    null

Maybe you are looking for

  • Substitution in portal UWL

    Hi I had a question around the portal UWL, and I've tried SDN, SAP Help, Google, and still can't find a definitive answer; so I'm hoping someone here can help. We run EP6 with an ECC5 backend, and our users are allowed to manage substitution via the

  • System Freezes While Running Disk Utility?

    While I was partitioning my disk, disk utility froze, along with my whole system. So I was forced to reboot. Now my Mac thinks there's an 80 gb chunk of data somewhere (the data that would have been my partition), but I can't find it. How do I regain

  • When an AIR for iOS provisioning profile expires ...

    I'm unclear about what happens to an installed iOS app when the provisioning profile OR the signing certificate expires. We're talking about an app that was published and installed with valid Enterprise Distribution credentials before the expiration

  • Too much space between Divs/Containers?

    http://kansascitycrates.com/antiques.html I am rewriting my company website and can't find the setting to move my top 2 containers (editable regions) closer to the header / horizontal spry menu bar? Specifically, I want to reduce the space above and

  • HTTPdc library documentation

    The help library delivered with Fusion to explain some of the HTTPdc library features that comes with Forte L will be documented in their online documentation for Forte 3.M. Meanwhile, a Technote as the help file converted into a HTML page (not in a