Hardware Stress test

Hi
I'm Planning to perform Hardware stress test on my servers and i'm
planning to use SunVTS for the same
can anybody tell me
1. Is there any other Diagnostics tool other that SunVTS for performing
Hardware stress test ?
2. what is IPthrottle and what is the use of it ?
Any help
Thanks in Advance

Hi Mattia_albicini,
Thank you for the reply!
The blank screen will come before Windows or after Windows?
Have you checked if the system is booting normally in safe mode option?
Is the system getting more heated up?
Can you verify the driver version from support site, because some time windows updates will also does the drivers update and some drivers will not be compatible with the hardware.
Manually uninstall the Graphic driver and then check restarting the system once.
Hope this helps. Do post us back for further assisance!
Best regards,
Hemanth Kumar
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
Follow @LenovoForums on Twitter!

Similar Messages

  • Is there stress testing software for the Mac?

    I am looking for a stress-testing program for OSX. Something that would press a computer to it's limits and make it crash faster, if it's supposed to crash intermittently. Can anyone suggest such a program for the Macintosh?
    iMac G4   Mac OS X (10.4.6)  

    Hi, T.M.
    If you're looking to troubleshoot an intermittent problem that may be hardware-related, See my "Apple Hardware Test" FAQ for comprehensive advice on using the Apple Hardware Test in troubleshooting, including running the test in Loop Mode.
    There is also Xbench, a performance benchmarking tool.
    More details as to what prompts your question might help.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • G50-70 intel hd graphics stress test warning

    Hello.I resently bought lenovo G50-70.After running comprehensive hardware test I got warning on intel hd graphics stress test.What does it mean?
    Thanks

    hi andreyzhitnikov,
    If you're not getting any artifacts on the screen (eg. when playing a video, a game, or any graphics-intensive application) then the error that you're getting is likely a false positive.
      - Sample image
    To verify, run OCCT or Intel Burn Test and run a  GPU Stress Test / Video Memory Test.
    Guide:
    How to Test NVIDIA/AMD Performance with OCCT (works also on Intel GPU)
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Hard drive stress test?

    Does anyone know of a hard drive stress test for Mac? I've been all over google and discussions but haven't found anything useful... Things that are suggested elsewhere that I don't want:
    -Zipping/Unzipping files, copying 3GB file etc
    -Benchmarks like Xbench
    -Opening 50 applications at once etc
    -Apple Hardware Test
    Thanks!

    Have you looked at Intech Speed Tools ?

  • NVIDIA Quadro K2000M Stress Test Warning

    Anyone with the NVIDIA Quadro K2000M card:  Has anyone received a stress test warning after running a hardware scan?
    I am currently connected to only two monitors (through the dock). And during the scan, I only had a couple of browsers open. I was not streaming or watching videos;  simply reading a couple of articles  (nothing "stressfull" taking place).
    This is the first time this has come up; I will be checking settings and running the test later.
    I couldn't find anything on the result code I received:  WVC00V000-WJSWSM
    Just thought I would check if anyone else had received the same result (stress test warning if not same code) and  what the final outcome was.

    Similar result on a T530 with i7, 8GB, and NVidia 5400: installed new version of Lenovo Solutions (prompted by Lenovo when I opened my existing version), ran full hardware check, everything passed except stress test on video card, which gave warning with result code WVC00V000-UJ8XWD.  Am also running in a dock (Mini Series 3+, not the USB 3.0 version) with a single external monitor attached to a DVI port.
    Interestingly, the log section for the NVidia 5400 says "Displays: 4", as if it thinks that I have 4 displays attached (whereas the log section for Intel 4000 video card says "Displays: 1").  Since the dock could output three displays (two outputs that can be either DisplayPort or DVI, plus one VGA) and the laptop screen is active, perhaps the program is assuming that it's actually running four screens.
    The fan exhaust put out some serious heat during that part of the test.  A couple of programs were open but not in use during the hardware test.  I had not run the hardware test under the previous version of Lenovo Solutions, so I don't know whether it would have shown the same thing, or whether it's new to the new version of Lenovo Solutions.
    Would appreciate any insights the community has to offer.
    Thanks.

  • Database base storage stress test

    Hi,
    I have a ucm 11g instance up and running with SSO.
    I need to test database storage against filesystem storage.
    Does anyone have any suggestions on how to test this?
    Also I'm sure I read somewhere (but I can't find it now) that once I go in one direction I can't go back, does anyone have any details about this?
    Many thanks
    James

    First of all, take a look at File Store Provider (here: http://download.oracle.com/docs/cd/E14571_01/doc.1111/e10792/c02_settings005.htm#CSMSP445)
    In general, filesystem storage is always used even if you store data in the database, in the end. It is, though, understood as a temporary storage. In theory, you can keep your files in both locations and I see no reason why you should not be able to go from FS to DB and back, BUT you have to consider consequences (you might have to rebuild indexes or even migrate data from one storage to the other).
    As for stress tests, first you have to decide WHAT you want to test. Potential candidates are:
    - checkin of a single item (wasted effort: since FS is always used as an intermediate storage it will always be a bit faster)
    - mass checkin (e.g. from Batch Loader - especially if you use Fast Checkin settings, db can be a bit faster, but you will need a real lot of small files)
    - search
    - update (metadata - wasted effort: should be the same)
    - backup
    - migration of content
    Then, you will have to setup two environments with more-or-less the same conditions (CPU power, memory, disk speed).
    And finally, you will have to create and run you test cases. I'd suggest to automate stress tests via writing a program calling the same services with the same data. Use WebServices (if non-Java) or RIDC (if Java).
    Alternatively, if your task is "to get results" rather than "perform stress tests", you could try to approach consulting services or project managers to provide some normalized results for you. Something can be obtained in this whitepaper: http://www.oracle.com/us/products/middleware/content-management/ecm-extreme-performance-wp-077977.pdf

  • Exception only occuring during stress test

    We are trying to get ready to release a beta version of the software I'm working on.. so part of getting ready for that was to try set up some stress tests and hit the server with multiple requests for the same page....
    Not sure exactly how many it is taking but we are getting the following exception.
    2005-06-10 13:20:23 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception
    java.lang.NumberFormatException: For input string: "200044.E2000444E"
            at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
            at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1207)
            at java.lang.Double.parseDouble(Double.java:220)
            at java.text.DigitList.getDouble(DigitList.java:127)
            at java.text.DecimalFormat.parse(DecimalFormat.java:1070)
            at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:1386)
            at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1156)
            at java.text.DateFormat.parse(DateFormat.java:333)
            at com.xxxxx.xxxxx.struts.adapter.BrowseBaseAdapter.formatYyyyMMddToLocaleStr(BrowseBaseAdapter.java:194)I can only assume that something was not thread safe and somehow something is getting confused....
    this is the method that produced the error and the code that it runs.
    I know absolutely nothing about making something thread safe.... can anyone give me good link to refer to or point something out in the below code that might be a no no.
    private static final SimpleDateFormat xxxxxxxxDateFormat =
              new SimpleDateFormat("yyyyMMdd");
         protected String formatYyyyMMddToLocaleStr(
              String  xxxxxxxxDt,
              Locale locale) {
              String result = "";
              if ( xxxxxxxxDt != null &&  xxxxxxxxDt.length() == 8) {
                   try {
                        Date tempDate =  xxxxxxxxDateFormat.parse( xxxxxxxxDt);
                        result = javaDataTypeToString(tempDate, locale);
                   } catch (ParseException ex) {
              return result;
    public String javaDataTypeToString(Object data, Locale locale) {
              String returnType = data.getClass().getName();
              String result = null;
              if (returnType.equals("java.lang.String")) {
                   result = (String) data;
              } else if (returnType.equals("java.lang.Float")) {
                   NumberFormat formatter = NumberFormat.getNumberInstance(locale);
                   formatter.setMaximumFractionDigits(6);
                   formatter.setGroupingUsed(false);
                   result = formatter.format((Float) data);
              } else if (returnType.equals("java.lang.Double")
                        || returnType.equals("java.math.BigDecimal")) {
                   NumberFormat formatter = NumberFormat.getNumberInstance(locale);
                   formatter.setMaximumFractionDigits(13);
                   formatter.setGroupingUsed(false);
                   StringBuffer buffer = new StringBuffer();
                   result = formatter.format(data, buffer, new FieldPosition(0))
                             .toString();
              } else if (returnType.equals("java.lang.Integer")) {
                   Integer inte = (Integer) data;
                   int intVal = inte.intValue();
                   if (intVal != 0)
                        result = String.valueOf(intVal);
                   else
                        result = "";
              } else if (returnType.equals("java.util.Date")) {
                   java.util.Date date = (java.util.Date) data;
                   SimpleDateFormat dateFormatter = getDatePattern(locale);
                   result = dateFormatter.format(date);
              } else if (returnType.equals("com.sungard.stnweb.utility.Time")) {
                   Time time = (Time) data;
                   result = time.asString();
              } else if (returnType.equals("java.lang.Boolean")) {
                   Boolean dataBool = (Boolean) data;
                   if (dataBool.booleanValue())
                        result = "1";
                   else
                        result = "";
              return result;

    From the API on java.text.SimpleDateFormat
    Synchronization
    Date formats are not synchronized. It is recommended to create separate
    format instances for each thread. If multiple threads access a format
    concurrently, it must be synchronized externally. Being static, your date format object will be accessed by multiple threads.
    Solution: Don't make the date format object static.
    I would suggest like this:
    private static final String dfString  ="yyyyMMdd";
    protected String formatYyyyMMddToLocaleStr(String  xxxxxxxxDt, Locale locale) {
      String result = "";
      SimpleDateFormat xxxxxxxxDateFormat = new SimpleDateFormat(dfString );
      if ( xxxxxxxxDt != null &&  xxxxxxxxDt.length() == 8) {
      try {
        Date tempDate =  xxxxxxxxDateFormat.parse( xxxxxxxxDt);
        result = javaDataTypeToString(tempDate, locale);
      catch (ParseException ex) {}
              return result;
    Ok, so it is constructing a DateFormatting object for each method call, but I don't see it as that big a deal. Its not a huge hit. You might get away with making it an instance variable - I don't know how you use the enclosing class. Start with this, and see if it works.
    Cheers,
    evnafets

  • Error in running Jasper Reports for more than 100 users in stress test

    I have created a web application with Jasper reports. during the stress test, we were able to run the same report simultaneously for 100 concurrent users, after that we get the following error. I hope there is no problem in my code (correct me if i am wrong)
    We use Web Sphere
    The error we get is as follows:
    java.io.FileNotFoundException: /apps/HewittProjects/installedApps/TBIA/workforce_CUR.ear/workforceServer4.16.4.war/reports/timesheet_mgr2.jasper (Too many open files)
               at java.io.FileInputStream.open(Native Method)
               at java.io.FileInputStream.(FileInputStream.java:106)
               at com.wily.introscope.agent.probe.io.ManagedFileInputStream.(ManagedFileInputStream.java:89)
               at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:85)
               at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:64)
               at com.workforcesoftware.servlets.ReportServlet2.getCompiledReport(ReportServlet2.java:712)
               at com.workforcesoftware.servlets.ReportServlet2.doPost(ReportServlet2.java:423)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
               at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
               at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
               at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
               at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
               at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
               at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
               at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
               at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61)
               at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1009)
               at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:529)
               at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:208)
               at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
               at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:321)
               at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
               at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:120)
               at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:250)
               at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
               at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
               at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
               at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
               at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)
    NESTED BY :
    net.sf.jasperreports.engine.JRException: Error loading object from file : /apps/HewittProjects/installedApps/TBIA/workforce_CUR.ear/workforceServer4.16.4.war/reports/timesheet_mgr2.jasper
               at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:92)
               at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:64)
               at com.workforcesoftware.servlets.ReportServlet2.getCompiledReport(ReportServlet2.java:712)
               at com.workforcesoftware.servlets.ReportServlet2.doPost(ReportServlet2.java:423)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
               at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
               at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
               at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
               at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
               at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
               at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
               at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
               at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61)
               at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1009)
               at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:529)
               at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:208)
               at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
               at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:321)
               at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
               at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:120)
               at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:250)
               at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
               at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
               at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
               at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
               at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)
    if this really cannot find the file, then how could it run successfully for 100 users?
    Have anyone experienced this problem?
    Thanks for your help.

    ummm seems odd to have 100 users making a report.. that can be the limitation of your application..

  • User is thrown from the Application under Cluster stress test

    Hi All,
    i have ADF/ADF faces application running on WLS 10.3.5.0 Cluster Environment (with 2 nodes).
    I'm running application using in memory Session replication.
    The problem which i have is that under the stress test (about 10-20 users) sometimes user suddenly is presented with Login Screen (more rare with session expired message) ! This also can happens immediately after user login .
    That happens randomly on different part of the System. In more of the cases user is thrown independently from other users but
    sometimes all the users are thrown simultaniously.
    When the System is tested with only one user this effect appears very rare.
    What i have done is to enable Cluster and Replication debugging to see if there some errors within Http Session Replication. However there isn't any errors appeared. From the application part everything seems fine.
    I suspect that the proxy could cause a problem (by forwarding the request to secondary instead of primary server). Currenltly i'm using HttpClusterSerlvet installed by default from WebLogic Configurator on dedicated Managed Server.
    Can somebody give any advice with this ?
    Thanks in advance,
    Krasimir

    Krashmir,
    Did you find any solution for this problem. I am also facing the similar issue.
    Thanks,
    Ram

  • SQL connection errors when stress testing mobile service: SQL failure after 3 attempts

    I have created a Mobile Service (node.js), which has been running for a few months with 50-100k api calls per day with no issues.
    The usage of the service will be scaled up soon, and it will receive much higher traffic, so I am running stress tests (on a staging deployment of the same service).
    The api in question queries data from the sql database that is attached to the mobile service, but caches the resulting data in a redis database for 5 minutes, so each call with identical parameters will not access the SQL database, just the redis cache.
    My first test never has any problems:
    Run a single api calls as fast as possible using the program wrk (https://github.com/wg/wrk). This test never has a problem, and I have run it an hour continuously with a sustained rate of 200 req/s and very few timeout errors.
    The second test always causes problems:
    I created a list of 5 different api calls to the same service (same endpoint, but different parameters), and I run those randomly interweaved as fast as possible. I use the program locust (http://locust.io) for this, spawing 10.000 clients at a rate of 500
    per second. For the first few seconds everything goes ok, but then connections start failing massively.
    I get mostly:
    Error: SQL failure after 3 attempts. Error: [Microsoft][SQL Server Native Client 10.0]TCP Provider: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected
    host has failed to respond.
     (SqlState: 08001, Code: 10060)
    And I see this in the http response:
    ConnectionError(ProtocolError('Connection aborted.', gaierror(8, 'nodename nor servname provided, or not known')),)
    The strange thing is that since I am running the same five calls repeatedly, only the very first of each call will actually access the sql database, every subsequent call will just return data directly from redis, and not try to access the sql database at
    all.
    In the azure console for the sql database in question, I see 1860 successful connections and 11 failed connections, which does not explain the massive failure rate I am seeing.

    Thanks for sharing your tips on this forum, as it will be useful for other users, that run into this issue.
    Feedback like this will also help us improve error reporting in the next release, as missing class files in the packaged application is a common issue when developers are moving from the embeded oc4j instance packaged with JDewveloper to standalone instances.
    -Eric

  • Stress test report example

    Hi guys,
    Anyone has examples about performance and stress tests reports that could provide?
    I’m starting our stress test and I will write a report, but I’m not sure how to do it and I would like to see an example before start.
    If you don’t mind, send me to [email protected]
    Thanks in advance,
    Ricardo.

    Sorry guys, but I mean a document and not SAP transactions

  • How do I remove a Safari debug stress test "Uptime" window?

    I used the Start Sampling option in the Safari Debug drop down menu in a attempt to solve a slowdown problem. A window then appeared on the desktop showing Uptime, Pages, and Resources which persists although I have stopped sampling, quit Debug, quit Safari, and restarted--and moving it to Trash won't work.  (My slowdown problem has been solved.) How do I remove this "Uptime-etc." see-through window from my desktop?  Nothing on the Debug drop down menu is checked and Sampling and Stress Test lines read Start---, not Stop---.  Thanks for any help. 

    Under the BookMarks menu is "Show All Bookmarks". Open that, and then navigate to the "Popular" folder, then highlight the offensive bookmark, and hit the delete button. That's it.

  • Stress tests: Weblogic Passivation of entity beans

    Dear all,
    I'm doing stress tests that consist of hundreds of concurrent access calling the same entity beans.
    I noticed a strange behaviour:
    - we developed with weblogic 6.1 and everything is Ok.
    - The production environment is in weblogic 7.1: the two most used entity Beans are never passivated. Each time such a bean is created, it is afterwards never reused and never passivated. This causes an undesirable full cache Exception.
    I configured max-bean in cache to 2000 and timeout to 60 sec.
    I'm sure it is a problem of WEBLOGIC 7.1 configuration but I do not have any idea on how to solve it.
    Did someone have the same problem?
    Regards.

    BEA provides a fix that may solve some of the caching problems you mentioned. Name of the fix is: CR110440

  • ConnectionBean fail with stress test. please assist.

    I am using the following to get connected to database.
    package com.db;
    import java.util.*;
    import java.io.*;
    import java.sql.*;
    import javax.servlet.http.*;
    public class ConnectionManager implements HttpSessionBindingListener
      private Connection connection;
      private Statement statement;
      private String driver = "";
      private String dbURL = "";
      private String login = "";
      private String password = "";
    static public void main(String[] args)
          ConnectionManager cm = new ConnectionManager();
      } // main
    public ConnectionManager()
           Properties Prop = new Properties();
           try {
              InputStream configStream = getClass().getResourceAsStream("/config/database.properties");
                   Prop.load(configStream);
              configStream.close();
               } catch(IOException e) {
                      System.out.println("Error: Cannot laod configuration file ");
           driver =Prop.getProperty("driver");
           dbURL = Prop.getProperty("dbURL");
            login = Prop.getProperty("login");
            password = Prop.getProperty("password");
    public void setDriver (String sDriver)
       if (sDriver != null)
           driver = sDriver;
    public String getDriver ()
       return driver;
    public void setDbURL (String sDbURL)
        if (sDbURL != null)
         dbURL = sDbURL;
    public String getDbURL()
       return dbURL;
    public void setLogin (String sLogin)
       if (sLogin != null)
          login = sLogin;
    public String getLogin()
       return login;
    public void setPassword (String sPassword)
       if (sPassword != null)
          password = sPassword;
    private String getPassword()
       return password;
    private void getConn ()
       try
          Class.forName(driver);
          connection = DriverManager.getConnection(dbURL,login,password);
          statement=connection.createStatement();
       catch (ClassNotFoundException e)
          System.out.println("ConnectionManager: driver unavailable");
          connection = null;
       catch (SQLException e)
          System.out.println("ConnectionManager: driver not loaded");
          connection = null;
    public Connection getConnection()
       if (connection == null)
          getConn();
       return connection;
    public void commit() throws SQLException
        connection.commit();
    public void rollback() throws SQLException
        connection.rollback();
    public void setAutoCommit(boolean autoCommit)
        throws SQLException
        connection.setAutoCommit(autoCommit );
    public ResultSet executeQuery(String sql) throws SQLException
        if (connection == null || connection.isClosed())
            getConn();
        return statement.executeQuery(sql);
    public int executeUpdate(String sql) throws SQLException
        if (connection == null || connection.isClosed())
            getConn();
        return statement.executeUpdate(sql);
    public void valueBound(HttpSessionBindingEvent event)
        System.err.println("ConnectionBean: in the valueBound method");
        try
          if (connection == null || connection.isClosed())
            connection = DriverManager.getConnection(dbURL,login,password);
            statement = connection.createStatement();
        catch (SQLException e)
          e.printStackTrace();
          connection = null;
    public void valueUnbound(HttpSessionBindingEvent event)
        close();
    public void close()
       try
           if ( connection != null
                || !connection.isClosed())
            connection.close();
       catch (SQLException e)
          e.printStackTrace();
    }This is what I use to test this code:
    <%@ page import="java.sql.*" %>
    <%@ page import="java.text.*" %>
    <%@ page import="java.util.*"%>
    <%@ page import="java.io.*" %>
    <p>
    Testing DBConnection Bean. <p>
    <%
    String sql="SELECT * FROM BS_PERSON" ;
    com.db.ConnectionManager CM = new com.db.ConnectionManager();
    ResultSet rset = CM.executeQuery(sql);
    while (rset.next()) {
       out.println(rset.getString("PERSON_USERCODE") + "<br>");
    %>When I stress test it, the code perform well for a while and then throw the following on Tomcat:
    ConnectionManager: driver not loaded
    ConnectionManager: driver not loaded
    ConnectionManager: driver not loaded
    Is there anything I could improve?
    For application that has many database read/write, is there any open source connection program that uses connection pooling?
    Thank you.

    Thank you for the prompt response.
    Yes. the code works and the data set gets return when I execute the code. It only fail with stress test after say 150-160 hits.
    I have put in the printStack Trace and got the following:
    ConnectionManager: driver not loaded
    java.sql.SQLException: ORA-00020: maximum number of processes (150) exceeded
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.O3log.receive1st(O3log.java:407)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:259)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
         at com.db.ConnectionManager.getConn(ConnectionManager.java:106)
         at com.db.ConnectionManager.executeQuery(ConnectionManager.java:154)
         at org.apache.jsp.dbconnection_jsp._jspService(dbconnection_jsp.java:76)
    Could it be that I didn't specifically close the connection? How could I go about doing it?
    Thank you.

  • Please recommend a tool for stress-testing ?

    Could anyone please recommend a (free) tool to do multi-threaded stress-test, on plain java classes ?
    In more detail: I'd like to do unit-test for some plain java methods (only mathematical calculations. No web interface, no swing).
    The emphasis is stress test: i need to launch multiple threads, all of them repeately invoking my method. Under these conditions, I need to report correctness (has the method yielded the expected return value), and statistics on response time.
    Any recommendations would be appreciated . Thanks !

    alex888 wrote:
    Working on a project that need me read data from delimited text file, the data will be converted to a tree-structure. So it's better parse the data into XML format first.What??? Why? You've got a text file and need an object tree, why do you think going to XML in between is a good idea?
    Besides j2se or jdom, any fast tool for it?What do you mean with "j2se", that's not a XML handling tool (it contains several, 'though).
    SAX sounds good for building object trees from XML, but there are several XML mapping libraries out there (try google).

Maybe you are looking for

  • How to see all my images in a large 3D world

    I have a 14 rectangles (shapes created in AE) distributed around a 3D world.  I have a camera (attached to a null) flying through the world to look at each one of the rectangles for a bit, and then move on. In order to get nice flowing camera moves,

  • ODI metadata load impacts Hyperion Planning performance

    I am performing a dimension load of approximately 14,000 members, with a few attributes, from an Oracle view. The data is staged instantaneously. But it takes a long time (30mins plus) to load to Planning. During this time, Planning can become unresp

  • Restart Workflow on changing the SC value

    Hi SRM Champs,   There is a interesting requirement in our project for Shopping Cart workflow with value limit approval.   Here, for the workflow there are two approvers APPROVER1 and APPROVER2 with the following condition : upto 1001 $ > more APPROV

  • Disable Full Screen Option in Slide Show?

    I'd like to be able to watch slideshows in the iphoto window & Not have it take up the full computer screen-I'm a multi-tasker. A few versions ago, that was possible, but the option was removed. Is it possible to achieve this in the latest version? I

  • Error starting Weblogic workshop 8.1

    Hi, I have trouble starting Weblogic workshop 8.1. I tried uninstalling it and reinstalling it, still the error persists. So I cannot run workshop on my desktop at all. I have included the error at the end. Any suggestions? Please let me know. Regard