ORACLE performance get worse after 24 hours of inactivity

Yesterday I imported a ORACLE DB, and I executed a query which uses some indexes. The query had only a LEFT JOIN between two tables. 24 hours later I executed the same query and then ORACLE decided not using the indexes and now uses full table access. That is the reason because the performance is worse. Does anybody know what is happening?

Did you note when you posted this that the forum name is "Adevanced Queueing?"
Please repost your question in the appropriate forum and include full version information, DML, and an explain plan when it is working properly and another from when it is slow using DBMS_XPLAN to generate the output.
You can find demos of how to do this in Morgan's Library at www.psoug.org under EXPLAIN PLAN.
Without this information no one will be able to help you.
Again ... do not post it here ... post it in the correct forum.

Similar Messages

  • Oracle AQ, messages dequeued after one hour

    Hi,
    We are facing a weird issue in one of our databases.
    ATESTMED
    SQL> select count (*) from emx_alarm_qtab;
    COUNT(*)
    26
    SQL> set serveroutput on
    SQL> DECLARE
    2 CURSOR c IS select * from emx_alarm_qtab;
    3 r c%ROWTYPE;
    4 i number;
    5 BEGIN
    6 i:=0;
    7 FOR r in c LOOP
    8 emx_queue.purge_alarm (r.msgid);
    9 i := i + 1;
    10 END LOOP;
    11 dbms_output.put_line ('Count ' || i);
    12 END;
    13 /
    Already purged MsgID=9E18AB1B7F1D3E9EE04083583A6E0BFA
    Already purged MsgID=9E18AB1B7F1E3E9EE04083583A6E0BFA
    Already purged MsgID=9E18AB1B7F1F3E9EE04083583A6E0BFA
    Already purged MsgID=9E18AB1B7F203E9EE04083583A6E0BFA
    Already purged MsgID=9E18AB1B7F213E9EE04083583A6E0BFA
    Already purged MsgID=9E18AB1B7F223E9EE04083583A6E0BFA
    Purged MsgID=9E1B6F30AE954564E04083583B6E1BB0
    Purged MsgID=9E1B6F30AE964564E04083583B6E1BB0
    Purged MsgID=9E1B6F30AE974564E04083583B6E1BB0
    Already purged MsgID=9E1B6F30AE904564E04083583B6E1BB0
    Already purged MsgID=9E1B6F30AE914564E04083583B6E1BB0
    Already purged MsgID=9E1B6F30AE924564E04083583B6E1BB0
    Purged MsgID=9E1B6F30AE984564E04083583B6E1BB0
    Purged MsgID=9E1B6F30AE934564E04083583B6E1BB0
    Purged MsgID=9E1B6F30AE944564E04083583B6E1BB0
    Already purged MsgID=9E1B6F30AE9D4564E04083583B6E1BB0
    Already purged MsgID=9E1B6F6FCDB86BA8E04083583B6E1BBD
    Already purged MsgID=9E1B6F6FCDC06BA8E04083583B6E1BBD
    Already purged MsgID=9E1B6F6FCDC16BA8E04083583B6E1BBD
    Already purged MsgID=9E1B6F6FCDC26BA8E04083583B6E1BBD
    Purged MsgID=9E1B6F6FCDC36BA8E04083583B6E1BBD
    Purged MsgID=9E1B6F6FCDC46BA8E04083583B6E1BBD
    Purged MsgID=9E1B6F6FCDC56BA8E04083583B6E1BBD
    Purged MsgID=9E1B6F6FCDC66BA8E04083583B6E1BBD
    Purged MsgID=9E1B6F6FCDC76BA8E04083583B6E1BBD
    Purged MsgID=9E1B6F6FCDC86BA8E04083583B6E1BBD
    Count 26
    PL/SQL-procedur Σr utf÷rd utan fel.
    SQL> commit;
    COMMIT Σr utf÷rt.
    SQL> select count (*) from emx_alarm_qtab;
    COUNT(*)
    26
    in SOATEST
    SQL> select count (*) from emx_alarm_qtab;
    COUNT(*)
    12
    SQL> set serveroutput on
    SQL> DECLARE
    2 CURSOR c IS select * from emx_alarm_qtab;
    3 r c%ROWTYPE;
    4 i number;
    5 BEGIN
    6 i:=0;
    7 FOR r in c LOOP
    8 emx_queue.purge_alarm (r.msgid);
    9 i := i + 1;
    10 END LOOP;
    11 dbms_output.put_line ('Count ' || i);
    12 END;
    13 /
    Purged MsgID=9E1A8C9F2CA8ABE1E040B30A2902673D
    Purged MsgID=9E1A8C9F2C90ABE1E040B30A2902673D
    Purged MsgID=9E1A8C9F2C91ABE1E040B30A2902673D
    Purged MsgID=9E1A8C9F2C92ABE1E040B30A2902673D
    Purged MsgID=9E1A8C9F2C93ABE1E040B30A2902673D
    Purged MsgID=9E1A8C9F2C94ABE1E040B30A2902673D
    Purged MsgID=9E1A8C9F2C95ABE1E040B30A2902673D
    Purged MsgID=9E1A8C9F2CA9ABE1E040B30A2902673D
    Purged MsgID=9E1A8C9F2CAAABE1E040B30A2902673D
    Purged MsgID=9E1A8C9F2CABABE1E040B30A2902673D
    Purged MsgID=9E1A8C9F2CACABE1E040B30A2902673D
    Purged MsgID=9E1A8C9F2CADABE1E040B30A2902673D
    Count 12
    PL/SQL-procedur Σr utf÷rd utan fel.
    SQL> commit;
    COMMIT Σr utf÷rt.
    SQL> select count (*) from emx_alarm_qtab;
    COUNT(*)
    0
    in ATESTMED, the rows are not getting dequeued. They get dequeued after one hour.
    the aq_tm_processes is already 0 in both the databases.
    This has started all of a sudden.
    Please help.
    Thanks,
    Rosh

    Is it exactly one hour? Has the timezone changed recently, there is a 10G R2 bug around timezones where the Queue Table is created in one timezone but isn't changed when the DB moves to a different timezone so they become out of sync. What does the Time Manager Info value tell you?

  • "you're signed out of Find My Friends after an hour of inactivity."

    FIND MY FRIENDS APP
    "If you haven't set a passcode to unlock your device, you're signed out of Find My Friends after an hour of inactivity. To stay signed in, set a passcode on Settings > General > Passcode Lock or Touch ID & Passcode."
    So the only way for friends to see my location at any time is to use a passcode every time I use my phone after being autolocked?
    If I don't want the inconvenience of repeatedly typing a passcode, on the whole friends can't see my location? Unless I remember to keep logging in to the app.
    If this is correct, the app can't easily be used for 'anytime locating', only when meeting up. That is, if it always occurs to friends to use it when meeting up. Looks like a major downside, if understood correctly.

    I just got this problem and cannot see how this can be undone either...
    Best regards,
    Peter

  • Using database connection in a servlet and get errors after 8 hours

    Hey,
    I'm running a poker script using applet/servlets and it works great. But for some reason about about 8 hours that database layer stops working. At first I thought it was the connections to mySQL that were timing out (because im using connection pooling) but after turning pooling off (I now create the connection each time) I'm still seeing that same error (I can create a connection but when I do an action ex. like a select statment I get an error). What i'm wondering could it be that the driver I load with Class.forName() some how unloads it's self after x amount of time not being used? Not sure if that is it but if anyone could give me some insight that would be great. The Error i recieve is below:
    INFO: Database Event:DatabaseController: Error executing database query.
    ERROR: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.net.SocketException
    MESSAGE: Software caused connection abort: recv failed
    STACKTRACE:
    java.net.SocketException: Software caused connection abort: recv failed
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(Unknown Source)
         at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:104)
         at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:144)
         at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:172)
         at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1839)
         at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2288)
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2784)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1622)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2370)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2297)
         at com.mysql.jdbc.Statement.executeQuery(Statement.java:1183)
         at com.softnet.database.DatabaseController.executeDatabaseQuery(DatabaseController.java:190)
         at com.softnet.games.GameServer.validateUser(GameServer.java:438)
         at com.softnet.games.GameServer.handleData(GameServer.java:113)
         at com.softnet.network.HttpConnectionThread.run(HttpServletListener.java:191)
    ** END NESTED EXCEPTION **
    I know the query is good because it works all other times just not after about 8 hours.
    --Z3r0CooL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hey,
    Thanks for the responces. For the connection pooling I would open 5 connections and keep them open. So i though maybe after 8 hours after not being used they would timeout. Thats why i turned off conection pooling and create a new connection each time. Anyways i'll post the code below incase i made a mistake somewhere.
    package com.softnet.database;
    /************************ DatabaseControler **************************/
    import java.sql.*;
    import java.util.*;
    import com.softnet.database.DatabaseConnectionPool;
    import com.softnet.database.DatabaseSettings;
    public class DatabaseController
    implements DatabaseListener
         //Used to make sure the database driver is loaded
         private boolean databaseDriverState = false;
         //Used to store a database connection
         private Connection databaseConnection = null;
         //If to user connection pooling or not
         private boolean useConnectionPooling = false;
         //Used to hold the connection pool varible
         private DatabaseConnectionPool connectionPool = null;
         //Used to store database settings
         private DatabaseSettings databaseSettings;
         //Used to hold the DatabaseController listeners
         private List databaseControllerListeners = new ArrayList();
         //min number of connections for connection pool
         private int minNumberOfConnections = 1;
         //max number of connections for connection pool -1 is unlimited
         private int maxNumberOfConnections = -1;
         //DatabaseController Constructors
         public DatabaseController(DatabaseSettings databaseSettings)
              this.databaseSettings = databaseSettings;
              databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
         public DatabaseController(DatabaseSettings databaseSettings, boolean useConnectionPooling, int minNumberOfConnections, int maxNumberOfConnections)
              this.databaseSettings = databaseSettings;
              this.useConnectionPooling = useConnectionPooling;
              this.minNumberOfConnections = minNumberOfConnections;
              this.maxNumberOfConnections = maxNumberOfConnections;
              if(useConnectionPooling == true)
                   connectionPool = new DatabaseConnectionPool(databaseSettings, minNumberOfConnections, maxNumberOfConnections);
                   connectionPool.addDatabaseListener(this);
              else
                   databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
         public DatabaseController() {}
         //Database Settings Get/Set
         public DatabaseSettings getDatabaseSettings()
              return databaseSettings;
         public void setDatabaseSettings(DatabaseSettings databaseSettings)
              this.databaseSettings = databaseSettings;
         //Connection Pooling Get/Set
         public boolean getConnectionPooling()
              return useConnectionPooling;
         public void setConnectionPooling(boolean useConnectionPooling, int minNumberOfConnections, int maxNumberOfConnections)
              this.useConnectionPooling = useConnectionPooling;
              this.minNumberOfConnections = minNumberOfConnections;
              this.maxNumberOfConnections = maxNumberOfConnections;
              if(useConnectionPooling == true)
                   if(connectionPool == null)
                        connectionPool = new DatabaseConnectionPool(databaseSettings, minNumberOfConnections, maxNumberOfConnections);
                        connectionPool.addDatabaseListener(this);
              else
                   if(connectionPool != null)
                        connectionPool.destroyConnections();
                        connectionPool.removeDatabaseListener(this);
                        connectionPool = null;
         //Return if there connected
         public boolean isConnected()
              boolean isConnected;
              if(databaseConnection != null)
                   isConnected = true;
              else
                   isConnected = false;
              return isConnected;
         //Used to connect to database or get a connection for the connection pool
         public void connect()
              if(databaseDriverState == false)
                   databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
              //If we dont have a current connection, make one
              if(databaseConnection == null && databaseDriverState == true)
                   if(useConnectionPooling == false)
                        try
                             databaseConnection = DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword());
                        catch (SQLException sqle)
                             //Raise event
                             raiseDatabaseEvent("DatabaseController: Error connecting to database. \nERROR: " + sqle.getMessage());
                             databaseConnection = null;
                   else
                        databaseConnection = connectionPool.getConnection();
         //Used to disconnect from the database or give back the connection to the connection pool
         public void disconnect()
              if(databaseConnection != null)
                   if(useConnectionPooling == false)
                        try
                             //Close DB Connection
                             databaseConnection.close();
                        catch(SQLException ignore) {}
                        finally
                             databaseConnection = null;
                   else
                        connectionPool.returnConnection(databaseConnection);
                        databaseConnection = null;
         public ResultSet executeDatabaseQuery(String sSQL)
              ResultSet databaseResult = null;
              if(databaseConnection != null)
                   try
                        Statement databaseStatement = databaseConnection.createStatement();
                        databaseResult = databaseStatement.executeQuery(sSQL);
                   catch(SQLException sqle)
                        //Raise event
                        raiseDatabaseEvent("DatabaseController: Error executing database query.\nSQL: " + sSQL + "\nERROR: " + sqle.getMessage());
              return databaseResult;
         public int executeDatabaseUpdate(String sSQL)
              int rowsAffected = -1;
              if(databaseConnection != null)
                   try
                        Statement databaseStatement = databaseConnection.createStatement();
                        rowsAffected = databaseStatement.executeUpdate(sSQL);
                   catch(SQLException sqle)
                        //Raise event
                        raiseDatabaseEvent("DatabaseController: Error executing database update.\nSQL: " + sSQL + "\nERROR: " + sqle.getMessage());
              return rowsAffected;
         //Used to load the Database Driver
         private boolean loadDatabaseDriver(String databaseDriver)
              boolean driverLoaded;
              if(databaseDriver.equals("") == false)
                   try
                        //Load Database Driver
                        Class.forName(databaseDriver).newInstance();
                        driverLoaded = true;
                   catch (Exception e)
                        //Raise event
                        raiseDatabaseEvent("DatabaseController: Error loading database driver. \nERROR: " + e.getMessage());
                        driverLoaded = false;
              else
                   driverLoaded = false;
              return driverLoaded;
         //Wrap the DatabaseConnectionPool Error to the DatabaseController
         public void databaseEventOccurred(DatabaseEvent de)
              raiseDatabaseEvent(de.getErrorMessage());
         //Event Handling Code
         //Used to add database listeners (Its sync'd so you can change the listeners when firing an event)
    public synchronized void addDatabaseListener(DatabaseListener databaseControllerListener)
    databaseControllerListeners.add(databaseControllerListener);
    //Used to remove a listener from the list (Its sync'd so you can change the listeners when firing an event)
    public synchronized void removeDatabaseListener(DatabaseListener databaseControllerListener)
    databaseControllerListeners.remove(databaseControllerListener);
    //Used to send the raise event to the listeners
    private synchronized void raiseDatabaseEvent(String databaseError)
    DatabaseEvent databaseEvent = new DatabaseEvent(this, databaseError);
    Iterator listeners = databaseControllerListeners.iterator();
    while(listeners.hasNext())
         DatabaseListener listener = (DatabaseListener) listeners.next();
    listener.databaseEventOccurred(databaseEvent);
    /********************* DatabaseConnectionPool **************/
    package com.softnet.database;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import com.softnet.database.*;
    import com.softnet.database.DatabaseSettings;
    public class DatabaseConnectionPool
         //min number of connections
         private int minNumberOfConnections = 1;
         //max number of connections -1 is unlimited
         private int maxNumberOfConnections = -1;
         //Store the connections
         protected Hashtable databaseConnections = null;
         //Database Info
         protected DatabaseSettings databaseSettings;
         //to hold Driver state
         private boolean databaseDriverState = false;
         //To hold connection checker
         private DatabaseConnectionCheck connectionChecker = null;
         //Used to hold the DatabaseConnectionPool listeners
         private List databaseConnectionPoolListeners = new ArrayList();
         public DatabaseConnectionPool(DatabaseSettings databaseSettings, int minNumberOfConnections, int maxNumberOfConnections)
              this.databaseSettings = databaseSettings;
              this.minNumberOfConnections = minNumberOfConnections;
              this.maxNumberOfConnections = maxNumberOfConnections;
              //Load Driver
              databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
              //Create connection
              createConnections();
         public DatabaseConnectionPool(int minNumberOfConnections, int maxNumberOfConnections)
              this.minNumberOfConnections = minNumberOfConnections;
              this.maxNumberOfConnections = maxNumberOfConnections;
         //Database Settings Get/Set
         public DatabaseSettings getDatabaseSettings()
              return databaseSettings;
         public void setDatabaseSettings(DatabaseSettings databaseSettings)
              this.databaseSettings = databaseSettings;
         //Driver State Get
         public boolean getDatabaseDriverState()
              return databaseDriverState;
         public void createConnections()
              if(databaseDriverState == false)
                   databaseDriverState = loadDatabaseDriver(databaseSettings.getDatabaseDriver());
              //Create all connections and load the minimum in the Hashtable
              if(databaseConnections == null)
                   if(databaseDriverState == true && minNumberOfConnections != 0)
                        databaseConnections = new Hashtable();
                        for(int i = 0; i < minNumberOfConnections; i++)
                             try
                                  databaseConnections.put(DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword()), Boolean.FALSE);
                             catch(SQLException sqle)
                                  //Problem break loop and destroy any connections
                                  destroyConnections();
                                  //Raise event
                                  raiseDatabaseEvent("DatabaseConnectionPool: Error creating database connections. \nERROR: " + sqle.getMessage());
                                  break;
              //If no connection check exists create one
              if(connectionChecker == null)
                   connectionChecker = new DatabaseConnectionCheck(this);
                   connectionChecker.start();
         public Connection getConnection()
              Connection connection = null;
              boolean errorWithConnection = false;
              Enumeration connections = databaseConnections.keys();
              synchronized (databaseConnections)
                   while(connections.hasMoreElements())
                        errorWithConnection = false;
                        connection = (Connection) connections.nextElement();
                        Boolean state = (Boolean) databaseConnections.get(connection);
                        //If connection is not used, use it.
                        if(state == Boolean.FALSE)
                             try
                                  connection.setAutoCommit(true);
                             catch(SQLException e)
                                  //Problem with connection remove connection and replace it
                                  databaseConnections.remove(connection);
                                  try
                                       connection = DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword());
                                  catch(SQLException sqle)
                                       errorWithConnection = true;
                             if(errorWithConnection == false)
                                  // Update the Hashtable to show this one's taken
                                  databaseConnections.put(connection, Boolean.TRUE);
                                  // Return the connection
                                  return connection;
                   //All connections being used check to max to see if we can make a new one
                   if(maxNumberOfConnections == -1 || maxNumberOfConnections > databaseConnections.size())
                        try
                             connection = DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword());
                        catch(SQLException sqle)
                             errorWithConnection = true;
                        if(errorWithConnection == false)
                             databaseConnections.put(connection, Boolean.TRUE);
                             return connection;
              //If not connections free and max connections reached wait for a free connection
              return getConnection();
         public void returnConnection(Connection connection)
              boolean errorWithConnection = false;
              //Make sure connection still works
              try
                   connection.setAutoCommit(true);
              catch(SQLException e)
                   //Problem with connection remove connection and replace it
                   databaseConnections.remove(connection);
                   try
                        connection = DriverManager.getConnection(databaseSettings.getDatabaseURL(), databaseSettings.getUserName(), databaseSettings.getUserPassword());
                   catch(SQLException sqle)
                        errorWithConnection = true;     
              if(errorWithConnection == false)
                   databaseConnections.put(connection, Boolean.FALSE);
         public void destroyConnections()
              Connection connection = null;
              if(databaseConnections != null)
                   //Close all connections
                   Enumeration connections = databaseConnections.keys();
                   while (connections.hasMoreElements())
                        connection = (Connection) connections.nextElement();
                        try
                             connection.close();
                        catch(SQLException ignore) {}
                   //Free up hashtable
                   databaseConnections = null;
         private boolean loadDatabaseDriver(String databaseDriver)
              boolean driverLoaded;
              if(databaseDriver.equals("") == false)
                   try
                        //Load Database Driver
                        Class.forName(databaseDriver);
                        driverLoaded = true;
                   catch (ClassNotFoundException cnfe)
                        //Raise event
                        raiseDatabaseEvent("DatabaseController: Error loading database driver. \nERROR: " + cnfe.getMessage());
                        driverLoaded = false;
              else
                   driverLoaded = false;
              return driverLoaded;
         //Event Handling Code
         //Used to add database listeners (Its sync'd so you can change the listeners when firing an event)
    public synchronized void addDatabaseListener(DatabaseListener databaseConnectionPoolListener)
    databaseConnectionPoolListeners.add(databaseConnectionPoolListener);
    //Used to remove a listener from the list (Its sync'd so you can change the listeners when firing an event)
    public synchronized void removeDatabaseListener(DatabaseListener databaseConnectionPoolListener)
    databaseConnectionPoolListeners.remove(databaseConnectionPoolListener);
    //Used to send the raise event to the listeners
    private synchronized void raiseDatabaseEvent(String databaseError)
    DatabaseEvent databaseEvent = new DatabaseEvent(this, databaseError);
    Iterator listeners = databaseConnectionPoolListeners.iterator();
    while(listeners.hasNext())
         DatabaseListener listener = (DatabaseListener) listeners.next();
    listener.databaseEventOccurred(databaseEvent);
    class DatabaseConnectionCheck extends Thread
         private DatabaseConnectionPool connectionPool;
         DatabaseConnectionCheck(DatabaseConnectionPool connectionPool)
              this.connectionPool = connectionPool;
         public void run()
              try
                   while(true)
                        //check threads every 30 seconds
                        this.sleep(300000);
                        if(connectionPool.databaseConnections != null)
                             Connection connection = null;
                             Enumeration connections = connectionPool.databaseConnections.keys();
                             synchronized (connectionPool.databaseConnections)
                                  while(connections.hasMoreElements())
                                       connection = (Connection) connections.nextElement();
                                       Boolean state = (Boolean) connectionPool.databaseConnections.get(connection);
                                       //If connection is not used, use it.
                                       if(state == Boolean.FALSE)
                                            try
                                                 connection.setAutoCommit(true);
                                            catch(SQLException e)
                                                 //Problem with connection remove connection and replace it
                                                 connectionPool.databaseConnections.remove(connection);
                                                 try
                                                      connection = DriverManager.getConnection(connectionPool.databaseSettings.getDatabaseURL(), connectionPool.databaseSettings.getUserName(), connectionPool.databaseSettings.getUserPassword());
                                                 catch(SQLException sqle)
                                                      connection = null;
                                                 // Update the Hashtable with new connection if its not null
                                                 if(connection != null)
                                                      connectionPool.databaseConnections.put(connection, Boolean.FALSE);
              catch(InterruptedException ignored) {}     
    Basicly the why it works is the connection pool hold the database connections. When the user needs a connection they use the database controller to request a connection (By create a instance and called the connect() method) and the connection is either created or grabed from the connection pool. After the user is done with the connection they call the disconnect() method which closes the connection or returns it to the connection pool.
    --Z3r0CooL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

  • Performance gets worse with more adjustments

    LR 3.5, Win7, 64-bit (both OS & LR - and yes, I made sure it is the 64-bit LR running), 8GB ram
    When I start doing adjustments to a photo it's really fast, no problems. But the more adjustments I add (mainly adjustment brush), the slower LR gets, the worse performance gets.  It gets so bad that making a change to a slider can take 6+ seconds to see the change!
    I'm making slider adjustments, using the adjustment brush a lot, and graduated filter adjustments.  I have auto mask turned off, my raw cache is 10GB, the raw file is 16.7MB.
    If I switch to a different photo everything is speedy again.  Switching back and everything is slow.  Closing & reopening LR has no affect, neither does rebooting.  I haven't tried creating a new catalog and putting that one photo there but I doubt that would help.  I do not have Photoshop or any other memory/cpu intensive programs running.  I actually did try to quit everything and that didn't help.
    I asked this on the NAPP forums and someone suggested:
    - Is it a Raw file or Tiff or Jpeg?
    Raw.
    - Cache may be corrupt, try to purge the cache.
    That did make a difference, but it's still quite slow.
    - Delete your history?
    I haven't tried this yet mainly because the I'm still making adjustments to the photo in question and I love being able to go back a bunch rather than having to start over again.  I plan on doing a bunch of similar adjustments to another photo then deleting the history and seeing if that helps.  Still, that's not something I want to be doing WHILE I'm still editing the photo.
    - Open the task manager and watch the cpu/memory.
    Did this and noticed when I made ANY change on a photo with lots of adjustments, both cpu and memory went up - cpu hit 85-95% doing anything and memory climbed from the 1.8GB it had when it started to 2.8GB.  If I go to a new photo cpu stays around 40-50% and memory stays lower, around 2.2-2.4GB.  And again, the more adjustments I added, the highter the cpu and memory went.
    And it isn't just this photo.  I've worked with many photos - both mine and from others - and as I add more and more adjustments (brush, sliders, etc), LR starts slowing down more and more.  I also have LR installed on my work computer and my personal computer, both share the same performance issues.  It's just when I get a LOT of adjustments made that this happens - mostly adjustment brushes.
    Any thoughts?  Thanks very much!!
    From System Info in LR:
    Lightroom version: 3.5 [775451]
    Operating system: Windows 7 Ultimate Edition
    Version: 6.1 [7600]
    Application architecture: x64
    System architecture: x64
    Physical processor count: 2
    Processor speed: 2.6 GHz
    Built-in memory: 8179.8 MB
    Real memory available to Lightroom: 8179.8 MB
    Real memory used by Lightroom: 2732.6 MB (33.4%)
    Virtual memory used by Lightroom: 2806.3 MB
    Memory cache size: 848.9 MB
    System DPI setting: 96 DPI
    Desktop composition enabled: Yes
    Displays: 1) 1680x1050, 2) 1680x1050
    Application folder: C:\Program Files\Adobe\Adobe Photoshop Lightroom  3.5
    Library Path: C:\Users\uchytil\Pictures\Lightroom\Lightroom 3 Catalog.lrcat
    Settings Folder: C:\Users\uchytil\AppData\Roaming\Adobe\Lightroom

    Pic4,
    I would think that it's the same problem on Mac. As Lee Jay has explained "Simplistically, it has to redraw all the local adjustments every time you update a slider" these adjustments create o lot of traffic between your hard drive(s) and the memory. So - simplistic - if all the traffic has to go back and forth to the same hard drive, there's congestion. So better, divide the various LR "elements" between different physical hard drives.
    Put your catalog on the external eSata - assuming that LR resides on your internal drive - and make your cache very large.
    I'd like to put in a word about hard drives: Instead of choosing one (1) huge internal drive it would be better to have at least two, or better three internal drives that can be much smaller. I'd say three drives @ 250 GB give you much better performance than one drive with 1 TB.
    With three drives, you'd put LR on drive 1 (C-drive), the LR catalog on drive 2, and the LR cache on drive 3. That way the system does not have to wait for one drive to finish writing before it can be read again (in simplistic terms) but the writing and reading happens simultaneously on three drives. That's the performance gain when you put the catalog, the cache and LR on different drives. It has to be different physical drives, partitions of one drive won't do it.
    I would think that it's the same on a PC or on a Mac.
    WW

  • Dedup performance getting worse and worse

    Hi Everyone
    I am running Windows 2012 Server and using it for storing VEEAM backups of our VMware environment, and well as a lot of SQL database backups
    Deduplication has been running well for the past couple of months (about 35Tb saved), but the performance seems to be getting worse and worse and it is now struggling to keep up with the rate at which new data is added
    Checking task and resource manager it doesn't appear that the fdsmhost.exe is really doing much work at all. I see long periods of complete inactivity with no disk access which is not really what I would expect. The files deduped and dedup savings are not
    changing either
    Does anyone have any good information about factors affecting dedup performance. I've tried manually starting the dedup job with the priority and memory usage parameters to force it to high priority and give it a decent amount of memory but still no joy
    We have recently added some more VMs to our setup so some of the backup files are very large (around 1.6Tb). is it likely to just be struggling with these large files?
    Any clues or best practices?
    Thanks
    Harley

    1) I can share current stats but don't have anything historically before things started to slow down
    Volume                         : D:
    VolumeId                       :
    \\?\Volume{222fb
    StoreId                        : {4D7E4D3E-EC7F-4
    DataChunkCount                 : 79157302
    DataContainerCount             : 2188
    DataChunkAverageSize           : 27.09 KB
    DataChunkMedianSize            : 0 B
    DataStoreUncompactedFreespace  : 0 B
    StreamMapChunkCount            : 69269
    StreamMapContainerCount        : 564
    StreamMapAverageDataChunkCount :
    StreamMapMedianDataChunkCount  :
    StreamMapMaxDataChunkCount     :
    HotspotChunkCount              : 758605
    HotspotContainerCount          : 21
    HotspotMedianReferenceCount    :
    CorruptionLogEntryCount        : 0
    TotalChunkStoreSize            : 2.07 TB
    2) There is no integration between VEEAM and MS as such. VEEAM just writes the backup files to a share and then Windows goes and deduplicates these at a later date. This was working fine for a couple of months but now seems to basically be doing nothing.
    This is causing me to run out of space fast as a weekly full backup is around 1.6Tb and the nightly incrementals are about 200Gb each. When this was working they would all get deduplicated back close to nothing freeing up nearly all of the space. Obviously
    this makes a massive difference. VEEAM itself is still working, but no deduplication seems to be happening
    3) I probably wasn't very clear, but it is only SQL backups being stored on here and not any actual live databases. As the nightly backups don't change very much and are never accessed except in a restore they should be perfect candidates for deduplication
    and do actually give very good deduplication rates.
    I do notice that one of the items on your list is files approaching or greater than 1Tb
    so maybe that is the problem as the weekly backup is one 1.6Tb file
    Maybe i'll try to split the backups up slightly and see if that makes any difference. Thinking about it  ..... before we adding the recent batch of servers to VMware the backup was around the 1Tb mark and it seems to have died around the jump to 1.6Tb

  • Go RED again after PUBLISHED...getting WORSE after updated!!!

    Hi,
    Recently i've just updated the iWeb software, but getting worse while working on iWeb now. Sad and Too Bad to me...
    Yesterday when i open my iWeb...every Pages from Blue turn to RED and after re-published..still RED.
    Not only that problem, i thought some of my pages caused the problem..so i try to create a new SITE and drag all my pages into the New Site and try to Drag and Drop back the Pages 1 by 1 and updating/publishing to check the that where's the problem from...
    But,
    I can't even Drag my BLOG page now...however i delete the .plist from the preferences or from the ByHost...FAILED me again!!!!
    I'm so disapointed to this so call "updated software" !!!!
    What s'ld i do now? Help Help..need help!!!
    I'm actually ready to publish my updated Website...
    I feel sad that nowaday apple doesn't take care of customer and the Quality anymore..worse and worse from Hardware to software...Too Bad!!!!! sorry for my frustrated words...

    Don't feel bad. I have weather widgets and countdown code imbedded in my site via text edit and idisk. So not only does it take forever to upload when I make a change but I have to go back into all the pages with the weather widgets and countdown clocks via text edit and add the code again. Iweb Version 1.1.2. Worked for years and then all of a sudden this. It's not a software problem, but a problem on Apples end communicating back to your computer that the pages have been successfully uploaded and should stay blue leaving only pages with changes to be uploaded next time unless you say different. It has been 6 weeks since Apple told me of this problem and still no solution. I can only wonder how much more trouble is coming when .mac is officially gone. I don't have publish to mobile me in my version 1.1.2 pull down menus, only publish to .mac. I hope a free software update will add these things to my version and take care of this, but I'm not holding my breath.Will they say I need to buy a new version of Iweb. It worked great till they screwed something up on their end. I don't want anythiing more than version 1.1.2 It worked great! It seems to have started when mobile me started running. The two systems maybe are conflicting with each other. Figure it out soon Apple or .mac/mobileme will be something to dump and move to something that works.

  • Did anyone else's battery get worse after the 5.0.1 update?

    my battery got worse after the update.  did this happen to other people also

    There are already many discussions about this.
    https://discussions.apple.com/message/16691544
    https://discussions.apple.com/message/16697579
    https://discussions.apple.com/message/16695989
    and many more

  • Sound gets off after few hours Satellite L745

    Hi,
    I have Satellite L745 model, bought 4 months back. 
    Two days before, I was using internal speakers for watching movie and after 2 or more hours there was no sound from the internal speakers of the laptop. So I tried other sound tracks, youtube etc but there was no sound from the internal speakers nor from headphones. I thought sound card is burnt as I was feeling hot right above the audio jack input. So I switched off the laptop for 30 minutes and switched on again, and found that it was working fine, there was sound from both internal and external headphones.
    Yesterday night same problem happened again, there was sound, working fine but suddenly after few hours there is no sound. I switched off the sound track and waited 5 minutes and again switched on the sound track then there was sound for few seconds but then again no sound. So I did same switched off the computer for 30 minutes and checked again then there was sound from the interanl and external both.
    I dont know what is the problem I did call service centre for technical assistance and he told me to re-install the drivers I did so. To check whether it is working fine now or not I need to switch on my laptop and sound track on for more than 3 hours.
    Any one experiencing such problem or any assistance from Toshiba technicians will be welcome.
    Thank you.
    Dileep  

    I had exactly the same problem during the reproduction of a youtube video or any other sound from a music file or a video played in Windows Media Player, if i don't put the level of the volume at the top, the problem doesn't exist. I updated the drivers of the sound card Conexant Cx20585 @ Intel Cougar Point PCH, as well as the drivers of the BIOS, but nothing improved. Previously I did the system restore, but then I started to update the drivers since the restoration did not solve the problem.
    I can not think what else to do, at least I'm relieved not to be the only one with the same model and the same problem notebook, Toshiba staff stay tuned!
    Thank you!
    PS: sorry for my English, it should not be the best, I'm from Argentina.

  • Oracle memory gets trimmed every 6 hours

    We have a very strange behaviour in our SAP R/3 Enterprise 4.7 production system (SAP_BASIS 620).
    SAP runs on Windows Server 2003 Enterprise Edition.
    10 GB RAM, PAE enabled (Physical Address Extension).
    The affected server is the database server, which also runs some working processes (DIA, BTC and UPD).
    There are also 6 Windows application servers (x32, x64 and Itanium).
    After a normal SAP start, all Windows processes bit by bit allocate their memory.
    oracle.exe starts with a Mem Usage 236 MB (VM Size 1.900 MB).
    You can see this in Windows Task Manager.
    After about 30 minutes oracle.exe reaches its average value of about 2 GB.
    The value ranges from 1,9 GB up to 2,5 GB.
    Then, about every 6 hours the following happens:
    oracle.exe deallocates its memory completely !
    No answer in SAPGUI, no reaction on the console for about 5 Minutes.
    Then when i get the first look at the Task manager, i see that oracle.exe allocated about 80 MB.
    In the next 20 minutes Mem Usage raises up to the average value of about 2 GB.
    During this time, the performance comes up again step by step.
    Not only Oracle is affected, at least every disp+work process also frees all allocated mamory.
    But it seems as if Oracle would be the first to free up its memory and then drags down the SAP Kernel processes.
    We have no changes made to the SAP Kernel, we did not apply any Windows updates.
    SAP operated error-free for the last 2 years in this configuration.
    The only thing we did, was to apply several SAP Support Packages (Basis + Application).
    This behaviour occured the next day after we imported those packages.
    So we have to suspect these packages, although the symptoms point to a problem with the SAP kernel, Oracle or the Windows memory mamagement.
    SAP Support adviced us to reduce the load on the server, so we suspended some work processes.
    Result: no improvement.
    Next we reduced the Oracle cache size by 250 MB.
    Result: the situation became even worse, the error occured every hour.
    So we icreased the cache size up to 1,36 GB.
    Result: could be an improvement, not sure yet.
    I am wondering what must happen, that all processes on a Windows Server deallocate their memory.
    Can a ABAP-Report provoke this error ?
    Has anybody else ever seen such a behaviour ?
    Any ideas ?

    Thx for your interest in this issue.
    For clarification:
    - Database version is 9.2.0.7.0
    - We will upgrade to 64 Bit in the next months, but we still need a solution for our 32 Bit system.
    - We did not add new application servers. These servers were up and running before and after the problem occured.
    - I don't think that Oracle restarts. There are no ORA-entries in the Oracle Log and there is no Oracle-Usertrace.
    The system slows down, because every byte, that is backed up in the paging file (as far as i know in MS terms this is called "standby list"), has become invalid and must be read from disk.
    Not only Oracle is affected, every process trimmed its working set.
    For example Terminal Services is unresponsive for about 4 minutes.
    In the end all processes continue their work, but it takes some time until their working set has been restored from the paging file.
    No errors occur, no Dumps, no EventLog or SystemLog entries.
    There are just some TIMEOUTs, caused by the unresponsiveness of the server in the first minutes of the memory crash.
    @Markus:
    Yes, i also think that we reached some kind of Oracle memory limit.
    Since we increased the Oracle cache size, the frequency of the error has been significantly reduced.
    But still i am wondering what funny things can happen.
    I would expect Oracle to crash, Windows to bluescreen, SAP to dump.
    But freeing the memory of all processes is something completely new to me.
    Edited by: Leonhard Bernhart on Jan 8, 2008 5:10 PM
    Edited by: Leonhard Bernhart on Jan 8, 2008 5:11 PM

  • Mighty Mouse tracking performance getting worse

    Has anyone noticed that the tracking performance of the MM deteriorates over time ? I have tried to investigated what could be the cause and I am not sure if it's connected to other bluetooth devices in the vacinity or if it's connected in some way to what apps are loaded on the MAC, or is it both ? there seems to be considerable communication in this forum that suggests that the hardware is suspect ..... is this another problem...
    John

    Have you tried putting in new batteries?
    I wrote up a few things to try and then I came across some steps from apple:
    7) Check for a Bluetooth Update
    To check for new software, choose Software Update from the Apple menu (make sure that your computer is connected to the Internet). If newer Apple Bluetooth software exists, Software Update will find it. To install an update, select the checkbox next to the software name and then click Install.
    8) Check for Signal Spoilers
    Because Bluetooth works by transmitting signals through the air, some things can interfere with connections. Avoid situations in which metal objects come between your device and computer. Don't put your computer under a metal desk or locked away behind a metal cabinet. Keep cordless phone base stations, microwave ovens, and other electrical devices that operate on a 2.4 GHz bandwidth away. And make sure that your device and computer aren't more than 30 feet apart from each other.
    9) Restart Your Computer
    Sometimes a simple restart—or two—is all it takes to get things running smoothly again. Try restarting your computer to see if that clears up the issue. If not, try shutting down your computer, waiting a minute, and then starting it back up again. You may also want to try resetting your computer's PRAM and NVRAM.
    10) Reset Your Bluetooth Device
    First try turning your device off and then on again. If that doesn't work, see if you can reset your device—please refer to the documentation that came with your device for instructions.
    These are from http://docs.info.apple.com/article.html?artnum=303591

  • After several hours of inactivity, the tabs are blank with noway to tell them apart without clicking on them. also the menu bar is there but the words 'File Edit View History Bookmarks Tools Help' are blank. also the drop down menus are blank.

    The links are there. I can click on them. I'm just can not see what I'm clicking on. The info on the tabs comes back but only when I click on that tab. rebooting every 24 hours fixes the problem temporarily.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Since loading the newest version, firefox crashes after a few hours of inactivity. Vista home is the OS.

    Since loading the newest version of Firefox on my computer running Vista Home edition Firefox crashes after several hours of inactivity. If I leave the browser open and return in a few hours, Firefox hangs and a control/alt/delete pulls up "Firefox not responding" and I have to close the application. Upon opening it again I get the Firefox box of oops, do you wish to open a new session or return to the old one. This problem never happened in earlier versions. Also, you tout the newest version is faster - not so on my computer.

    if you use vista, try install sp2, and if the problem still there , try google chrome 10.x to see whether it is better, sometimes these sort of problem only happen to some specific websites, and esp. during rush hours of internet, i.e. night hours from dusk to mid-night.

  • I just tried to wake up my 4 year-old MacBook Pro after perhaps an hour of inactivity, and it just 'pinwheels' and won't restart. HELP!!!!!!!!!

    I just tried to wake up my 4 year-old MacBook Pro after perhaps an hour of inactivity, and it just 'pinwheels' and won't restart. HELP!!!!!!!!!
    Semi-experienced user - Western New York.
    System was operating nominally until I opened it from 'sleep' mode after ~1 hour of inactivity.
    No idea what's going on. I had just installed a Flash Player update [not an atypical occurrence] at ~6:00 PM this evening, but used the system without incident after that. Re-Start attempt does not appear to succeed, the circular pre-OS icon never clears and displays the authorization screen.
    Anyone with an idea how to help would be greatly appreciated. We have so much personal and business data on this machine!!!
    Thanks!
    Jim F.

    Press and hold the power button for a few seconds until the power shuts off, then release, wait a few more seconds, and press it again briefly to restart.
    The fact that you're worried about the data implies that you have no backups, or that you don't have confidence in your backups. Your first priority must be to back up all the data you intend to keep. Ask if you need guidance.

  • Firefox automatically crashes after 4 hours of use and only when a textbox is being used - problem now daily and getting worse

    This has been going on for a few weeks and started of it's own accord. I have not recently installed any new plugins or scripts, and my PC is protected by two antivirus products and so my system (WinXP) is malware free.
    I can browse firefox for up to 4 hours, and then it crashes. No matter what sites I am using, what I am doing or even if I'm at the PC... so long as there's a text box on the page then firefox will crash if the 4 hour time limit expires. I can be just about to save an hours worth of photo captions and lose all that work due to the crash, or can be in the middle of a background download but it'll still crash... daily.
    I thought this was a plugin issue, as I have disabled all plugins for javascript handling, flashgot, etc, but still it crashes. (previously on startup Firefox would hang for 5 to 10 minutes and the system would "bing" at me if I tried to click on the firefox window... eventually a 'non responsive script' window would appear relating to a flashgot script). The crash used to go whereby suddenly the page would freeze for a few seconds, followed by a minute or two of safe working, then 2 minutes of freeze and 30 seconds of safe working, with the ratio of freeze-tim:working time working in 20 seconds increments until firefox crashed... now though there is no warning, the page freezes and then it's gone. I have updated firefox several times and still the problem persists. On a previous computer, Firefox degraded to the point where it froze for 4 minutes on any page with a Flash application... now on this computer it has degraded by itself to the point where it crashes after 4 hours of use.
    I'm presently using Internet Explorer to type this question because firefox crashed again and I'm not going to sit waiting for it to reload just to get a few numbers from an information screen... therefore further info like crash ID's etc will be update in due time....

    Cool, I'll try using the wall adaptor just as soon as I get a convertor for it to convert it to our socket type. It's nice to hear that someone else has experienced the same issue.
    I am not using it as a phone in Australia, just the ipod and wifi.

Maybe you are looking for

  • Webservices with xmlbeans fails during deploy.

    Hi there, I have created a webservices from an existing wsdl that uses xmlbeans. The xmlbeans are on the weblogic classpath, because they are used by several components, including the webservices I generated. When I try to deploy the webservice I get

  • Triggering automatice correspondence for downpayment

    Hello all, I am trying to configure standard SAP18 correspondence in order to print down payment receipt via F.61. My question is how entries in table BKORM are updated automatically? I have done all the customizing and customer master field KNB1-ZAM

  • How to set InitParameters in Tomcat??

    I'd like to do the following in my servlet init public void init(ServletConfig config) throws ServletException { super.init(config); databaseURL = config.getInitParameter("database"); how to set the InitParameter in Tomcat??

  • Able to do calibratio​n in labview ?

    i currently doin a temperature control system using labview whereby my thermocouple is connected a thermocouple amplifier, because i connect using breadbord so the value i obtain is quite far from the data sheet given, so i need to do the calibration

  • Deployment Error from Visual Studio 2013

    I have been publishing my Azure web role and worker roles once or twice per week for the last year. 3 days ago I began getting this when publishing from VS: 8:44:19 AM - Checking for Remote Desktop certificate... 8:44:21 AM - Applying Diagnostics ext