Informix Timeout
Hi all -
Is there a way to set the socket timeout on an informix connection? In
MySql the connectTimeout and socketTimeout can be specified in the url, but
I can't find anything like that for informix. We've had problems with our
db connections hanging during reads, bringing down our weblogic server
because all threads are used.
Thanks,
Justin
Thanks for your help! You've given me more ammo for upgrading to 8.1.
Justin
"Joe Weinstein" <[email protected]> wrote in message
news:[email protected]..
>
>
Justin Bartlett wrote:
Actually we're using 7.0 sp2. Is it still possible then?Nope, sorry.
"Joe Weinstein" <[email protected]> wrote in message
news:[email protected]..
Justin Bartlett wrote:
We're using the IBM driver, 2.21.JC5. I haven't tried the
setQueryTimeout
but that sounds like it would work. I was hoping to set it in the urlso we
wouldn't have to make so many code changes.Understood. What version of weblogic are you using? If it's 8.1, look atthe
MBean interface to our pools. We have an option to make this call for
you
under the covers. We can then only hope the driver and DBMS implementthe
>>
call
correctly...
Joe
"Joe Weinstein" <[email protected]> wrote in message
news:[email protected]..
Justin Bartlett wrote:
Hi all -
Is there a way to set the socket timeout on an informix connection?
In
MySql the connectTimeout and socketTimeout can be specified in theurl,
>>>>
but
I can't find anything like that for informix. We've had problems
with
>>>>
our
db connections hanging during reads, bringing down our weblogic
server
because all threads are used.
Thanks,
JustinWhose Informix driver are you using? Have you triesStatement.setQueryTimeout()?
Joe
Similar Messages
-
Informix Drivers do not appear to work with some components
I am attempting to connect via JDBC to an informix 7.3 dynamic server. I downloaded the most current IBM/Informix drivers
Informix JDBC Driver 2.21.JC5
and created another server type (informix) with the appropriate driver class and url template:
I can successfuly test connect after adding the data source.
When opening up the data source in the server navigator I can see all the tables and even see a query table view in the main window.
I can build an application using the data table component and it will produce results.
When I attempt to use the dropdown list component, however, and then build the application - when the brower window comes up - nothing is ever displayed.
I can bring the same dropdown list component unto another application and link it to one of the local sample tables provides by jsc - and it works fine.
I have added the following jars to my informix server type:
ifxjdbc.jar
ifxjdbcx.jar
ifxlang.jar
ifxlsupp.jar
ifxsqlj.jar
ifxtools.jar
xerces.jar
as they appear to be all the non-debug jars that came with the informix jdbc install.Valerie
The non-debug versions of the informix driver jars are in C:\Sun\Creator\SunAppServer8\lib
The debug versions are not - I will copy them over to see if that makes a difference. So far, the normal jars and the debug jars produce the same result (nothing to the brower upon the build)
from the SunAppServer8 domains/creator/config domain.xml
- <resources>
<jdbc-resource enabled="true" jndi-name="jdbc/__TimerPool" object-type="system-all" pool-name="__TimerPool" />
<jdbc-resource enabled="true" jndi-name="jdbc/PointBase" object-type="user" pool-name="PointBasePool" />
<jdbc-resource enabled="true" jndi-name="jdbc/Travel" object-type="user" pool-name="RaveGenerated_1089061500_TravelPool" />
<jdbc-resource enabled="true" jndi-name="jdbc/CARS" object-type="user" pool-name="RaveGenerated_1089066379_CARSPool" />
<jdbc-resource enabled="true" jndi-name="jdbc/CARS_RaveGenerated_1089076896" object-type="user" pool-name="RaveGenerated_1089076896_CARSPool" />
<jdbc-resource enabled="true" jndi-name="jdbc/testnew" object-type="user" pool-name="RaveGenerated_1089673343_testnewPool" />
<jdbc-resource enabled="true" jndi-name="jdbc/CARS Debug" object-type="user" pool-name="RaveGenerated_1089678667_CARS_DebugPool" />
<jdbc-resource enabled="true" jndi-name="jdbc/Cars With Trace" object-type="user" pool-name="RaveGenerated_1089681413_Cars_With_TracePool" />
- <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.pointbase.xa.xaDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="__TimerPool" pool-resize-quantity="2" res-type="javax.sql.XADataSource" steady-pool-size="8">
<property name="DatabaseName" value="jdbc:pointbase:embedded:ejbtimer,database.home=${com.sun.aas.instanceRoot}/lib/databases" />
<property name="User" value="pbPublic" />
<property name="Password" value="pbPublic" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.pointbase.xa.xaDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="PointBasePool" pool-resize-quantity="2" res-type="javax.sql.XADataSource" steady-pool-size="8">
<property name="DatabaseName" value="jdbc:pointbase:server://localhost:9092/sun-appserv-samples" />
<property name="Password" value="pbPublic" />
<property name="User" value="pbPublic" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="table" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="true" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="RaveGenerated_1089061500_TravelPool" pool-resize-quantity="2" steady-pool-size="8" validation-table-name="PERSON">
<property name="url" value="jdbc:pointbase:server://localhost:19092/sample" />
<property name="Password" value="travel" />
<property name="driverClassName" value="com.pointbase.jdbc.jdbcUniversalDriver" />
<property name="User" value="travel" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="RaveGenerated_1089066379_CARSPool" pool-resize-quantity="2" steady-pool-size="8">
<property name="url" value="jdbc:odbc:CARS" />
<property name="Password" value="******" />
<property name="driverClassName" value="sun.jdbc.odbc.JdbcOdbcDriver" />
<property name="User" value="******" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="table" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="true" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="RaveGenerated_1089076896_CARSPool" pool-resize-quantity="2" steady-pool-size="8" validation-table-name="informix.aa_rec">
<property name="url" value="jdbc:informix-sqli://****.***.edu:****/cars:INFORMIXSERVER=****" />
<property name="Password" value="*****" />
<property name="driverClassName" value="com.informix.jdbc.IfxDriver" />
<property name="User" value="*****" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="table" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="true" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="RaveGenerated_1089673343_testnewPool" pool-resize-quantity="2" steady-pool-size="8" validation-table-name="informix.aa_rec">
<property name="url" value="jdbc:informix-sqli://****.****.edu:****/cars:INFORMIXSERVER=****" />
<property name="Password" value="root147" />
<property name="driverClassName" value="com.informix.jdbc.IfxDriver" />
<property name="User" value="carsroot" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="table" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="true" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="RaveGenerated_1089678667_CARS_DebugPool" pool-resize-quantity="2" steady-pool-size="8" validation-table-name="informix.aa_rec">
<property name="url" value="jdbc:informix-sqli://****.****.edu:****/cars:INFORMIXSERVER=****;PROTOCOLTRACE=2;PROTOCOLTRACEFILE=/temp/trace.out" />
<property name="Password" value="*****" />
<property name="driverClassName" value="com.informix.jdbc.IfxDriver" />
<property name="User" value="*****" />
</jdbc-connection-pool>
- <jdbc-connection-pool connection-validation-method="table" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="true" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" name="RaveGenerated_1089681413_Cars_With_TracePool" pool-resize-quantity="2" steady-pool-size="8" validation-table-name="informix.aa_rec">
<property name="url" value="jdbc:informix-sqli://****.***.edu/cars:INFORMIXSERVER=****;TRACE=3;TRACEFILE=/temp/trace.out" />
<property name="Password" value="******" />
<property name="driverClassName" value="com.informix.jdbc.IfxDriver" />
<property name="User" value="******" />
</jdbc-connection-pool>
</resources>
sun-web.xml (from the application)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sun-web-app (View Source for full doctype...)>
- <sun-web-app xmlns="http://java.sun.com/xml/ns/j2ee">
<context-root>/webapplication24</context-root>
- <resource-ref>
<res-ref-name>jdbc/CARS Debug</res-ref-name>
<jndi-name>jdbc/CARS Debug</jndi-name>
- <default-resource-principal>
<name>*****</name>
<password>*****</password>
</default-resource-principal>
</resource-ref>
<class-loader delegate="false" />
- <jsp-config>
- <property name="classdebuginfo" value="true">
<description>Enable debug info compilation in the generated servlet class</description>
</property>
- <property name="mappedfile" value="true">
<description>Maintain a one-to-one correspondence between static content and the generated servlet class' java code</description>
</property>
</jsp-config>
</sun-web-app>
web.xml (from the application)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE web-app (View Source for full doctype...)>
- <!--
Copyright 2002, 2003 Sun Microsystems, Inc. All Rights Reserved.
-->
- <web-app>
- <context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
- <context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/navigation.xml,/WEB-INF/managed-beans.xml</param-value>
</context-param>
- <context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
- <context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
- <!--
Faces Servlet
-->
- <servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
- <!--
Error Handler Servlet
-->
- <servlet>
<servlet-name>ExceptionHandlerServlet</servlet-name>
<servlet-class>com.sun.errorhandler.ExceptionHandler</servlet-class>
</servlet>
- <!--
Faces Servlet Mapping
-->
- <servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
- <!--
<url-pattern>*.faces</url-pattern>
-->
</servlet-mapping>
- <!--
Error Handler Servlet Mapping
-->
- <servlet-mapping>
<servlet-name>ExceptionHandlerServlet</servlet-name>
<url-pattern>/error/ExceptionHandler</url-pattern>
</servlet-mapping>
- <!--
Welcome File List
-->
- <welcome-file-list>
<welcome-file>faces/Page1.jsp</welcome-file>
</welcome-file-list>
- <!--
Catch ServletException
-->
- <error-page>
<exception-type>javax.servlet.ServletException</exception-type>
<location>/error/ExceptionHandler</location>
</error-page>
- <!--
Catch IOException
-->
- <error-page>
<exception-type>java.io.IOException</exception-type>
<location>/error/ExceptionHandler</location>
</error-page>
- <!--
Catch FacesException
-->
- <error-page>
<exception-type>javax.faces.FacesException</exception-type>
<location>/error/ExceptionHandler</location>
</error-page>
- <resource-ref>
<description>Rave generated DataSource Reference</description>
<res-ref-name>jdbc/CARS Debug</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app> -
Datasource bounding between jboss and informix db
I am creating a informix datasource in jboss4.0.2, but I always got error like this, so the connection is null.
16:29:08,821 INFO [ConnectionFactoryBindingService] Unbound connection factory
for resource adapter for ConnectionManager 'jboss.jca:name=ds/fastDB,service=Dat
aSourceBinding from JNDI name 'java:ds/fastDB'
the following is my informix-ds.xml file and java codes: appreciated if someone can let me know the cause and solution.
-------- informix-ds.xml -------------------------
<datasources>
<local-tx-datasource>
<jndi-name>ds/fastDB</jndi-name>
<connection-url>jdbc:informix-sqli://10.20.10.101:1621/fastdb1:INFORMIXSERVER=dbdev</connection-url>
<driver-class>com.informix.jdbc.IfxDriver</driver-class>
<user-name>fast</user-name>
<password>fast123</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>10</idle-timeout-minutes>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.InformixExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>InformixDB</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
----------my jave codes -----------------
InitialContext initContext = new InitialContext();
ds = (DataSource)initContext.lookup("java:ds/fastDB");
con = ds.getConnection();Hi,
We have a similar problem but we think its done at the firewall instead of the DB. Did you try this settin gin the data-srouce.xml?
clean-available-connections-threshold="30"
We are testing this to see if this works in addition to:
Configure TCP Keepalive on the database and midtier servers to keep the database connection 'busy' at operating system level. The exact kernel parameters to use depend on the operating system. The TCP Keepalive time setting must be less than the firewall connection timeout setting.
To give an example, for a Linux RedHat server, to enable TCP Keepalive to ping socket connections every 300 seconds, run the following as root:
sysctl -w net.ipv4.tcp_keepalive_time = 300
sysctl -w net.ipv4.tcp_keepalive_probes = 3
sysctl -w net.ipv4.tcp_keepalive_intvl = 20
TCP_KEEPALIVE_TIME
Description: Determines how often to send TCP keepalive packets to keep an connection alive if it is currently unused.
TCP_KEEPALIVE_INTERVAL
Description: Determines the wait time between isAlive interval probes.
TCP_KEEPALIVE_PROBES
Description: Determines the number of probes before timing out.
Note: sysctl will modify runtime settings. To maintain these parameter changes after server reboot, modify the /etc/sysctl.conf file also.
Andrew -
Another problem with Tuxedo XA and informix
In an application running Tuxedo 6.5 with Informix DS 7.3 sometimes writes
the following message in the ulog.
LIBTUX_CAT:1397: WARN:tpreturn transaction processing failure
may be due to a transaction timeout???
and with the XA trace running seems like some xa_rollback statements return
with error when a transaction involves two servers in different groups. the
line is some like this:
.........TRACE:XA: 0xc0 0x3ccf8af 0x1 xa_rollback = -4
(-4 = XAER_NOTA)
Is Tuxedo or Informix loosing the XID???
Apparently, despite this, nothing serious happens, i guess because the
transaction is currently rollingback. But 1 or 2 times a week, the Informix
Server stop responding and the entire app. must be restarted.
Any ideas??
Thanks in advanceThanks a lot. I'll work on that.
"Martin Sullivan" <[email protected]> wrote in message
news:[email protected]..
This looks to be something I've observed with other TPM and other
DBM. The root cause is the DBM being, er, flexible with the XA
specification. The conjecture is that something happened to your
Transaction Branch in Informix and it voted rollback on the prepare
but it didn't wait, as the specification requires, to forget the
Transaction Branch and then when Tuxedo issued the rollback there
wasn't a valid Transaction XID that the DB knew about, so XAER_NOTA
(Not a Transaction).
Oracle does much the same thing with when the TM value on the Open
string is too small and this may be the reasoning behind the
"transaction timeout" message.
Martin.
On Mon, 3 Jun 2002 15:29:20 -0500, Eric Velazquez <[email protected]>
wrote:
:In an application running Tuxedo 6.5 with Informix DS 7.3 sometimeswrites
:the following message in the ulog.
:LIBTUX_CAT:1397: WARN:tpreturn transaction processing failure
:may be due to a transaction timeout???
:and with the XA trace running seems like some xa_rollback statementsreturn
:with error when a transaction involves two servers in different groups.the
:line is some like this:
:.........TRACE:XA: 0xc0 0x3ccf8af 0x1 xa_rollback = -4
:(-4 = XAER_NOTA)
:Is Tuxedo or Informix loosing the XID???
:Apparently, despite this, nothing serious happens, i guess because the
:transaction is currently rollingback. But 1 or 2 times a week, theInformix
:Server stop responding and the entire app. must be restarted.
:Any ideas??
:Thanks in advance
Martin Sullivan. The reply-to e-mail address is temporary to thwart spam.
If viewing from an archive try sullivan at zois &c. There is more on
Open OLTP at http://www.zois.co.uk. -
Informix locking issue, please help...
To anyone with the inclination to help,
We are using WLS5.1. We have a stateless session bean containing (very simple)
JDBC code. We are using container managed transactions, an isolation level of READ_COMMITTED,
and autoCommit set to false.
Here is the situation : 2 threads almost simultaneously run the following SQL command
on a small table created with LOCK MODE ROW. Note the threads supply different
values for reqID (a unique id).
update msgtable set tread=? where reqID=?
One of the transactions succeeds, the other is rolled back due to
a SQLException : Informix major error code = -244, a minor code of -107.
This error indicates that the second transaction is being denied a lock, and hence
cannot perform the update. This is strange because the lock granted to the succeeding
transaction should be for a different row than the one which failed, however ignoring
this - here is the problem as far as i can tell. By default an Informix session has
a LOCK MODE of NO WAIT - this means if a lock isn't available exactly when requested,
it will cause the transaction requesting the lock to roll-back immediately, which
is unacceptable.
How do I configure a connection pool to do a
'SET LOCK MODE TO WAIT x' (will wait x seconds for a lock to become available) command
when it connects to Informix?
Do I have to write the code that does this myself each time I use an Informix connection?
(Due to the dynamic nature of connection pools, i don't see how i can put this into
a start-up class)
Any help is much appreciated,
Regards,
Serge MonkewitzSerge Monkewitz wrote:
Hi Joseph,
Thanks so much for the reply, that is excellent news!I'm glad to help.
We are using Weblogic5.1sp10, and the the weblogic informix4 driver.
You're saying we should upgrade to sp12 and use the IBM informix driver? (I did check
their driver documentation, as well as informix documentation and their does not
appear to be a way to to set the lock mode through a property).In general our spX is better than our sp(X-y) so I do recommend them :-)
Separately, I also do recommend Informix's own driver if you have any
problem at all with our Informix driver. Theirs is better.
Before I upgrade our service pack, how do I specify the arbitrary SQL for the pool
connection tests? (I looked at the 5.1 docs as well as the sp12 docs and couldn't
find the relevant section).In the pool definition you have an entry for the testTable in the weblogic.properties
file. Set this as I described below, eg:
testTable=SQL SET LOCK MODE TO WAIT 30,\
testConnsOnReserve=true,\
refreshTestMinutes=99999999,\
I recommend all three lines shown above. The test table setting will do what you
want (for either driver) if the second line is set as shown, and the third line
effectively turns off a periodic asynchronos checker that tests idle connections.
This is unnecessary unless you have a firewall or DBMS that will kill idle connections
after a timeout period.
The docs URL is:
http://www.weblogic.com/docs51/classdocs/conn_pools.html#635172
Joe
>
>
Thanks again,
Regards,
Serge Monkewitz
Joseph Weinstein <[email protected]> wrote:
What version of 5.1? If it's the latest service pack, you can do the following
trick. If the
Informix driver doesn't have a property you can set to make this the default
behavior
(we recommend their driver), then set your connection pool to test connections
at
reserve time. For the 'test table', you can actually specify arbitrary SQL
to be executed.
This will serve perfectly to test the connection and assure this behavior.
Set the test table
string to:
SQL SET LOCK MODE TO WAIT x
The pool will strip off the leading 'SQL ' and execute the rest before giving
you the
connection.
Joe -
XA transactions timeout with essentials / eclipselink
I'm attempting to do an XA (container managed) tranasction throught a series of remote EJB calls. Database is 11g
When the JPA provider is toplink-essentials or EclipseLink the the end of the 2PC hangs. Eventually it times out with an "Error allocating connection". Monitoring of the connection pool shows there are lots of free
However this work with Hibernate 3.
How do I use XA transactions on 11g with toplink/eclipselink.Thanks for looking at this. I can send a full code sample if needed. Sorry for the full stack traces.
The Setup
There are three parts to my application.
+1) an ejb which writes "Nice Weather" to the database+
+2) an ejb which calls the nice weather remotely then returns "Hello World"+
+3) a junit test which connects to the ORB of the "HelloWorld" which in turn calls the "NiceWeather"+
Using Toplink-essentials and ojdbc6.jar
The database user has all grants/admin/privileges. Assigned by clicking on the Grant ALL and Admin All in the SQL developer edit user.
In NiceWeather ejb the persistence.xml looks like
+<?xml version="1.0" encoding="UTF-8"?>+
+<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">+
+<persistence-unit name="NiceWeatherPU" transaction-type="JTA">+
+<provider>oracle.toplink.essentials.PersistenceProvider</provider>+
+<jta-data-source>jdbc/helloRemoteEJB</jta-data-source>+
+<exclude-unlisted-classes>false</exclude-unlisted-classes>+
+<properties>+
+<property name="toplink.ddl-generation" value="drop-and-create-tables"/>+
+<property name="toplink.logging.logger" value="JavaLogger"/>+
+<property name="toplink.logging.level" value="FINEST"/>+
+</properties>+
+</persistence-unit>+
+</persistence>+
the Connection pool backing jdbc/helloRemoteEJB looks like
Name: Oracle-11g-XA
Datasource Classname: javax.sql.XADataSource
Resource Type: javax.sql.DataSource javax.sql.XADataSource
User: example
password: example
url: jdbc:oracle:thin:@localhost:1521:orcl
Passing Case
When run with both components (HelloWorld-ejb and NiceWeather-ejb) deployed on the same Application Server instance (Glassfish v2ur2) the tests pass and everything is happy
the log messages for the NiceWeather-ejb are:
begin deploying Persistence Unit NiceWeatherPU; state Predeployed; factoryCount 1
property=toplink.target-server; value=oracle.toplink.essentials.platform.server.sunas.SunAS9ServerPlatform
property=toplink.logging.logger; value=JavaLogger; translated value=oracle.toplink.essentials.logging.JavaLog
property=toplink.logging.level; value=FINEST; translated value=FINEST
property=toplink.logging.level; value=FINEST; translated value=FINEST
TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))
Server: unknown
DBPlatform: oracle.toplink.essentials.platform.database.InformixPlatform, RegularExpression: (?i)informix.*.
DBPlatform: oracle.toplink.essentials.platform.database.PointBasePlatform, RegularExpression: (?i)pointbase.*.
DBPlatform: oracle.toplink.essentials.platform.database.DB2Platform, RegularExpression: (?i).*db2.*.
DBPlatform: oracle.toplink.essentials.platform.database.SQLServerPlatform, RegularExpression: (?i)microsoft.*.
DBPlatform: oracle.toplink.essentials.platform.database.PostgreSQLPlatform, RegularExpression: (?i)postgresql.*.
DBPlatform: oracle.toplink.essentials.platform.database.SybasePlatform, RegularExpression: (?i)(sybase.*)
DBPlatform: oracle.toplink.essentials.platform.database.JavaDBPlatform, RegularExpression: (?i).*derby.
DBPlatform: oracle.toplink.essentials.platform.database.oracle.OraclePlatform, RegularExpression: (?i)oracle.*.
Detected Vendor platform: oracle.toplink.essentials.platform.database.oracle.OraclePlatform
connecting(DatabaseLogin(
platform=>DatabasePlatform
user name=> ""
connector=>JNDIConnector datasource name=>null
+))+
Connected: jdbc:oracle:thin:@localhost:1521:orcl
User: DD
Database: Oracle Version: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Driver: Oracle JDBC driver Version: 11.1.0.7.0-Production
connecting(DatabaseLogin(
platform=>OraclePlatform
user name=> ""
connector=>JNDIConnector datasource name=>null
+))+
Connected: jdbc:oracle:thin:@localhost:1521:orcl
User: DD
Database: Oracle Version: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Driver: Oracle JDBC driver Version: 11.1.0.7.0-Production
sequencing connected, state is Preallocation_Transaction_NoAccessor_State
sequence SEQ_GEN: preallocation size 50
file:/C:/Apps/1-Projects/other/RemoteEJB/NiceWeather/build/jar/-NiceWeatherPU login successful
end deploying Persistence Unit NiceWeatherPU; state Deployed; factoryCount 1
client acquired
TX binding to tx mgr, status=STATUS_ACTIVE
Execute query DoesExistQuery()
+PERSIST operation called on: example.remoteejb.entity.Weather[id=null].+
TX beginTransaction, status=STATUS_ACTIVE
Execute query DataModifyQuery()
reconnecting to external connection pool
UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT ? WHERE SEQ_NAME = ?+
bind => [50, SEQ_GEN]
Execute query ValueReadQuery()
SELECT SEQ_COUNT FROM SEQUENCE WHERE SEQ_NAME = ?
+bind => [SEQ_GEN]+
local sequencing preallocation for SEQ_GEN: objects: 50 , first: 2, last: 51
+assign sequence to the object (2 -> example.remoteejb.entity.Weather[id=null])+
TX beforeCompletion callback, status=STATUS_ACTIVE
begin unit of work commit
TX beginTransaction, status=STATUS_ACTIVE
+Execute query InsertObjectQuery(example.remoteejb.entity.Weather[id=2])+
INSERT INTO WEATHER (ID, MESSAGE) VALUES (?, ?)
bind => [2, Nice Weather1228420595934]
TX afterCompletion callback, status=COMMITTED
local sequencing preallocation is copied to preallocation after transaction commit
end unit of work commit
Failed Case
When the HelloWorld-ejb is deployed to a different Application server instance the log messages for the NiceWeather-ejb are:
client acquired
TX binding to tx mgr, status=STATUS_ACTIVE
Execute query DoesExistQuery()
+PERSIST operation called on: example.remoteejb.entity.Weather[id=null].+
+assign sequence to the object (3 -> example.remoteejb.entity.Weather[id=null])+
TX beforeCompletion callback, status=STATUS_ACTIVE
begin unit of work commit
TX beginTransaction, status=STATUS_ACTIVE
+Execute query InsertObjectQuery(example.remoteejb.entity.Weather[id=3])+
reconnecting to external connection pool
A potential connection leak detected for connection pool DD-XA-ojdbc6-11.1.0.7.0. The stack trace of the thread is provided below :
com.sun.enterprise.resource.AbstractResourcePool.setResourceStateToBusy(AbstractResourcePool.java:301)
com.sun.enterprise.resource.AbstractResourcePool.getResourceFromPool(AbstractResourcePool.java:778)
com.sun.enterprise.resource.AbstractResourcePool.getUnenlistedResource(AbstractResourcePool.java:652)
com.sun.enterprise.resource.AssocWithThreadResourcePool.getUnenlistedResource(AssocWithThreadResourcePool.java:136)
com.sun.enterprise.resource.AbstractResourcePool.internalGetResource(AbstractResourcePool.java:594)
com.sun.enterprise.resource.AbstractResourcePool.getResource(AbstractResourcePool.java:443)
com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:248)
com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:176)
com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:337)
com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:189)
com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)
com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:108)
oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:145)
oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:233)
oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:242)
oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.reconnect(DatasourceAccessor.java:436)
oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.reconnect(DatabaseAccessor.java:1177)
oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.incrementCallCount(DatasourceAccessor.java:220)
oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:479)
oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:452)
oracle.toplink.essentials.internal.sessions.AbstractSession.executeCall(AbstractSession.java:690)
oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:228)
oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:214)
oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:346)
oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:191)
oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:205)
oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:564)
oracle.toplink.essentials.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:89)
oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:750)
oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryMechanism.java:714)
oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:602)
oracle.toplink.essentials.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:162)
oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:390)
oracle.toplink.essentials.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:109)
oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:628)
oracle.toplink.essentials.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:555)
oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:138)
oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:110)
oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2233)
oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:952)
oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
oracle.toplink.essentials.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:269)
oracle.toplink.essentials.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:190)
oracle.toplink.essentials.internal.sessions.AbstractSession.writeAllObjectsWithChangeSet(AbstractSession.java:2657)
oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1044)
oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitToDatabase(RepeatableWriteUnitOfWork.java:403)
oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1126)
oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.issueSQLbeforeCompletion(UnitOfWorkImpl.java:2443)
oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:202)
oracle.toplink.essentials.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:131)
oracle.toplink.essentials.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:91)
com.sun.jts.jta.SynchronizationImpl.before_completion(SynchronizationImpl.java:99)
com.sun.jts.CosTransactions.RegisteredSyncs.distributeBefore(RegisteredSyncs.java:158)
com.sun.jts.CosTransactions.TopCoordinator.beforeCompletion(TopCoordinator.java:2548)
com.sun.jts.CosTransactions.CoordinatorSynchronizationImpl.before_completion(CoordinatorSynchronizationImpl.java:181)
org.omg.CosTransactions.SynchronizationPOA._invoke(SynchronizationPOA.java:39)
com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:687)
com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:227)
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
Monitoring Statistics :
PoolCounters:
maxNumConnUsed = 1
minNumConnUsed = 0
currNumConnUsed = -5
maxNumConnFree = = 14
minNumConnFree = 0
currNumConnFree = 13
numConnCreated = 26
numConnDestroyed = 18
numConnFailedValidation = 0
numConnTimedOut = 0
numConnAcquired = 10
numConnReleased = 9
currConnectionRequestWait = 0
minConnectionRequestWait = 0
maxConnectionRequestWait = 2172
totalConnectionRequestWait = 2172
numConnSuccessfullyMatched = 10
numConnNotSuccessfullyMatched = 0
numPotentialConnLeak = 0
_<It hangs at this point, eventually the transaction times out>_
IOP00410219: (COMM_FAILURE) Communications timeout waiting for response. Exceeded 1,800,000 milliseconds"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 219 completed: Maybe
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.communicationsTimeoutWaitingForResponse(ORBUtilSystemException.java:3180)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.communicationsTimeoutWaitingForResponse(ORBUtilSystemException.java:3195)
at com.sun.corba.ee.impl.transport.CorbaResponseWaitingRoomImpl.waitForResponse(CorbaResponseWaitingRoomImpl.java:198)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.waitForResponse(SocketOrChannelConnectionImpl.java:1196)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
RAR5027:Unexpected exception in resource pooling
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 219 completed: Maybe
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.communicationsTimeoutWaitingForResponse(ORBUtilSystemException.java:3180)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.communicationsTimeoutWaitingForResponse(ORBUtilSystemException.java:3195)
at com.sun.corba.ee.impl.transport.CorbaResponseWaitingRoomImpl.waitForResponse(CorbaResponseWaitingRoomImpl.java:198)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.waitForResponse(SocketOrChannelConnectionImpl.java:1196)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.waitForResponse(CorbaMessageMediatorImpl.java:291)
at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete1(CorbaClientRequestDispatcherImpl.java:389)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
poolmgr.err_enlisting_res_in_getconn
+RAR5117 : Failed to obtain/create connection from connection pool [ DD-XA-ojdbc6-11.1.0.7.0 ]. Reason : org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 219 completed: Maybe+
+RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 219 completed: Maybe]+
Local Exception Stack:
+Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DatabaseException+
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 219 completed: Maybe
Error Code: 0
Call: SQLCall(INSERT INTO WEATHER (ID, MESSAGE) VALUES (?, ?))
+Query: InsertObjectQuery(example.remoteejb.entity.Weather[id=3])+
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:150)
at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
Caused by: java.sql.SQLException: Error in allocating a connection. Cause: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 219 completed: Maybe
at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:145)
+... 54 more+
Local Exception Stack:
+Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DatabaseException+
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 219 completed: Maybe
Error Code: 0
Call: SQLCall(INSERT INTO WEATHER (ID, MESSAGE) VALUES (?, ?))
+Query: InsertObjectQuery(example.remoteejb.entity.Weather[id=3])+
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:150)
at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:233)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
Caused by: java.sql.SQLException: Error in allocating a connection. Cause: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 219 completed: Maybe
at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:145)
+... 54 more+
JTS5054: Unexpected error occurred in after completion
Local Exception Stack:
+Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DatabaseException+
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 219 completed: Maybe
Error Code: 0
Call: SQLCall(INSERT INTO WEATHER (ID, MESSAGE) VALUES (?, ?))
+Query: InsertObjectQuery(example.remoteejb.entity.Weather[id=3])+
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:150)
at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:233)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:242)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
Caused by: java.sql.SQLException: Error in allocating a connection. Cause: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 219 completed: Maybe
at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:145)
+... 54 more+
TX afterCompletion callback, status=ROLLEDBACK
release unit of work
initialize identitymaps
client released
The HelloWorld-ejb making the remote call to Niceweather-ejb has the log
+LDR5010: All ejb(s) of [HelloEJB] loaded successfully!+
+"IOP00410219: (COMM_FAILURE) Communications timeout waiting for response. Exceeded 1,800,000 milliseconds"+
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 219 completed: Maybe
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.communicationsTimeoutWaitingForResponse(ORBUtilSystemException.java
+.... cut .....+
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
+JTS5033: Exception [org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 219 completed: Maybe] on [before_completion] synchronization operation.+
+EJB5018: An exception was thrown during an ejb invocation on [HelloBean]+
javax.ejb.EJBException: Transaction aborted; nested exception is: javax.transaction.RollbackException
javax.transaction.RollbackException
at com.sun.jts.jta.TransactionManagerImpl.commit(TransactionManagerImpl.java:311)
+.... cut .....+ -
Sso session timeout per partner application
Hello,
I was just wondering if it is possible to configure SSO session timeouts per partner application? I'm looking to log out users of a particular application after 15 minutes, but don't want this change to affect any of my other SSO enabled applications. Is this possible?
Thanks,Hi,
I do not think so, you can not specify specail parameter for one application in SSO.
Why because SSO is one component (within your Infra) through which you logon different apps.
Another solution may be it will expensive is that you 'll need to use different infra for this specific application.
Regards,
Hamdy -
I am using the mac QQ and when I login it said login timeout.
I am using the mac QQ and when I login it said login timeout.
If you are missing using google maps - try the Nokia map app called "here"
-
Dear all,
I inherit this configuration from my colleague,
The PC / host inside the network internet connection will timeout / disconnected after several minutes when not using.
How do i disable the config and I want the host to continously connect to internet.
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2011.08.11 11:01:19 =~=~=~=~=~=~=~=~=~=~=~=
kewpie-MLK-ASA# sh run
: Saved
ASA Version 8.0(3)
hostname kewpie-MLK-ASA
domain-name default.domain.invalid
enable password ym1CwmrLnc/fndsu encrypted
names
interface Ethernet0/0
nameif outside
security-level 0
ip address 60.a.a.54 255.255.255.252
interface Ethernet0/1
no nameif
no security-level
no ip address
interface Ethernet0/1.1
vlan 10
nameif Inside
security-level 80
ip address 192.168.0.1 255.255.255.0
interface Ethernet0/1.2
vlan 20
nameif visitor
security-level 100
ip address 192.168.1.1 255.255.255.0
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
interface Management0/0
shutdown
no nameif
no security-level
no ip address
passwd 2KFQnbNIdI.2KYOU encrypted
ftp mode passive
dns server-group DefaultDNS
domain-name default.domain.invalid
access-list 100 extended permit icmp any any
access-list 100 extended permit tcp any any
access-list 100 extended permit ip any any
access-list 101 extended permit icmp any any
access-list 101 extended permit tcp any any eq 2828
access-list 101 extended permit tcp any host 192.168.0.254 eq 2255
pager lines 24
mtu outside 1500
mtu Inside 1500
mtu visitor 1500
icmp unreachable rate-limit 1 burst-size 1
icmp permit any outside
icmp permit any Inside
icmp permit any visitor
asdm image disk0:/asdm-507.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (Inside) 1 192.168.0.0 255.255.255.0
nat (visitor) 1 192.168.1.0 255.255.255.0
static (Inside,outside) tcp interface 2828 192.168.0.254 telnet netmask 255.255.255.255
access-group 101 in interface outside
access-group 100 in interface Inside
access-group 100 in interface visitor
route outside 0.0.0.0 0.0.0.0 60.a.a.53 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout uauth 0:30:00 absolute uauth 0:30:00 inactivity
dynamic-access-policy-record DfltAccessPolicy
aaa authentication include tcp/0 Inside 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 LOCAL
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet 0.0.0.0 0.0.0.0 Inside
telnet 192.168.4.0 255.255.255.0 Inside
telnet timeout 5
ssh 0.0.0.0 0.0.0.0 outside
ssh 0.0.0.0 0.0.0.0 Inside
ssh timeout 5
console timeout 0
dhcpd dns 202.188.0.133 202.188.5.1
dhcpd address 192.168.0.2-192.168.0.253 Inside
dhcpd enable Inside
dhcpd address 192.168.1.2-192.168.1.253 visitor
dhcpd enable visitor
threat-detection basic-threat
threat-detection statistics access-list
username admin password bOnxO8/ZA7i5hOxq encrypted
username kpmsb password /LTd0pEXjM6Ht1Sp encrypted
class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect netbios
inspect rsh
inspect rtsp
inspect skinny
inspect esmtp
inspect sqlnet
inspect sunrpc
inspect tftp
inspect sip
inspect xdmcp
service-policy global_policy global
prompt hostname context
Cryptochecksum:809895a4506cb7e47a57552c4a0e0a0f
: endHi Mohammad,
You have the following timeoutr values set:
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout uauth 0:30:00 absolute uauth 0:30:00 inactivity
If you do not want the connection to timeout, use the following:
timeout conn 0:00:00
This would never timeout the connection.
Thanks,
Varun -
Jackd + guitar: "timeouts and broken pipes"
Hi friends! I'm trying to pass my electric guitar via any rack/effects (like Guitarix or Creox) with no luck. I've got this sound card:
01:06.0 Multimedia audio controller: Creative Labs [SB Live! Value] EMU10k1X
01:06.1 Input device controller: Creative Labs [SB Live! Value] Input device controller
I try with QJackCtl and invoking jackd from the terminal with any luck.
jackd -d alsa -C -P
jackd 0.121.3
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
could not open driver .so '/usr/lib/jack/jack_net.so': libcelt0.so.2: cannot open shared object file: No such file or directory
could not open driver .so '/usr/lib/jack/jack_firewire.so': libffado.so.2: cannot open shared object file: No such file or directory
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 2 periods for playback
jackd watchdog: timeout - killing jackd
[gabo@machina ~]$
This is the output from QJackCtl:
00:12:07.126 Client deactivated.
00:12:07.130 JACK is being forced...
cannot read server event (Success)
cannot continue execution of the processing graph (Bad file descriptor)
zombified - calling shutdown handler
cannot send request type 7 to server
cannot read result for request type 7 from server (Broken pipe)
cannot send request type 7 to server
cannot read result for request type 7 from server (Broken pipe)
00:12:07.339 JACK was stopped with exit status=1.
I can hear my guitar and record with Audacity, but when jackd enter into the escenario everything blows up. I read that nowadays almost any sound card will work with QJackCtl with the default options. I play with the parameters and sometimes jack refuse to start. With the default options on i can make it run, but i get no sound of the racks or guitar effects processors neither the guitar tuners that use jack takes the sound from the guitar. My line input is in capture via alsamixer, but still no luck. Any clue on this? I'm skipping steps?
Thanks in advance.
iamgaboHi!
groups && cat /proc/asound/cards && cat ~/.asoundrc && cat '/etc/security/limits.d/audio.conf' && jackd -v
adm disk lp wheel http network video audio optical storage power users polkitd vboxusers wireshark kismet
0 [Live ]: EMU10K1X - Dell Sound Blaster Live!
Dell Sound Blaster Live! at 0xcc00 irq 17
#pcm.upmix71 {
#type upmix
#slave.pcm "surround71"
#delay 15
#channels 8
pcm.!default {
type hw
card 0
ctl.!default {
type hw
card 0
# convert alsa API over jack API
# use it with
# % aplay foo.wav
# use this as default
pcm.!default {
type plug
slave { pcm "jack" }
ctl.mixer0 {
type hw
card 1
# pcm type jack
pcm.jack {
type jack
playback_ports {
0 system:playback_1
1 system:playback_2
capture_ports {
0 system:capture_1
1 system:capture_2
cat: /etc/security/limits.d/audio.conf: No such file or directory
I have a file called 99-audio.conf
cat /etc/security/limits.d/99-audio.conf
@audio - rtprio 99
@audio - memlock unlimited
Also i've seen some guys changing this file too:
cat /etc/security/limits.conf
# /etc/security/limits.conf
#Each line describes a limit for a user in the form:
#<domain> <type> <item> <value>
#Where:
#<domain> can be:
# - an user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open files
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit (KB)
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to values: [-20, 19]
# - rtprio - max realtime priority
#<domain> <type> <item> <value>
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
* - rtprio 0
* - nice 0
@audio - rtprio 65
@audio - nice -10
@audio - memlock unlimited
jackd 0.121.3
There are the snaps for QJackCtl
Also, checkout this stuff that i've recorded with audacity, only from the line and nothing else
http://ompldr.org/vZ3A2eg
Thanks!
Last edited by iamgabo (2012-12-15 02:21:08) -
Database connection timeouts and datasource errors
Connections in the pool randomly die overnight. Stack traces show that for some reason, the evermind driver is being used even though the MySql connection pool is specified.
Also, the evermind connection pool is saying connections aren't being closed, and the stack trace shows they're being allocated by entity beans that are definitely not left hanging around.
Sometimes we get non-serializable errors when trying to retrieve the datasource (this is only after the other errors start). Some connections returned from the pool are still good, so the application limps along.
EJBs and DAOs both use jdbc/SQLServerDSCore.
Has anyone seen this problem?
<data-sources>
<data-source
class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"
name="SQLServerDSCore"
location="jdbc/SQLServerDSCore"
xa-location="jdbc/xa/SQLServerXACore"
ejb-location="jdbc/SQLServerDSCore"
connection-driver="com.mysql.jdbc.Driver"
min-connections="5"
username="xxx"
password="xxx"
staleness-timeout="3600"
alive-poll-query="SELECT 1 FROM medispan"
url="jdbc:mysql://1.2.3.4:3306/dbo?autoReconnect=true&autoReconnectForPools=true&cachePrepStmts=true&is-connection-validation-required=true"
inactivity-timeout="30"
>
<property name="autoReconnect" value="true"/>
<property name="autoReconnectForPools" value="true"/>
<property name="is-connection-validation-required" value="true"/>
<property name="cachePrepStmts" value="true"/>
</data-source>
</data-sources>Rick,
OC4J 9.0.4.0.0 - BTW, do you know of any patches?As far as I know, there are no patches for the 9.0.4
production version of OC4J stand-alone.
I'm using container managed persistence,It was not clear to me, from your previous post, that you
are using CMP entity beans.
I found staleness-timeout and alive-poll-query
somewhere on a website when trying to track this
down. Here's four sources:Those sources refer to OrionServer -- and an older version, too, it seems.
Like all other Oracle products that start out as somebody
else's -- including, for example, JBuilder (that became "JDeveloper"), Apache Web Server (that became "Oracle HTTP Server") and TopLink -- their development paths diverge, until, eventually, there is absolutely no similarity between them at all. Hence, the latest versions of OC4J and "OrionServer" are so different, that you cannot be sure that something that works for "OrionServer" will work for OC4J.
I recall reading something, somewhere, sometime about configuring OC4J to use different databases (other than Oracle), but I really don't remember any details (since it was not relevant to me, because we only use Oracle database). In any case, it is possible to use a non-Oracle database with OC4J.
Good Luck,
Avi. -
MDB Timeouts and transaction behavior
Hi, thanks in advance for any help with this.
We have a MDB where we have set the timeout to five minutes. In a particular case this timeout is being reached but even though the MDB times out the transaction and sends the message for redelivery the original transaction that was processing the message continues until something happens from an application standpoint to cause that original transaction to complete. This means that we have the same message processed twice under these circumstances.
I would have expected that if a transaction timed out that the transaction would have been terminated and therefore our processing would have stopped. Is there a way to force this behavior or do we have to put an alarm in our code and kill ourselves such that we never encounter the transaction time out?
Thanks,
Sue ShanabrookI should have mentioned that we are using container managed transactions.
-
Lock Timeouts and Heap Space Exhaustion
I'm having some trouble figuring out the best way to handle resource constraints in my application. Generally speaking, the application works well after starting for about a day or so, but inevitably starts generating "Lock timeout" messages and eventually runs out of heap space.
Here is the main entity class:
http://github.com/justindthomas/flower_as/blob/master/src/java/name/justinthomas/flower/analysis/statistics/StatisticalInterval.java
Here is a supporting, persistent class:
http://github.com/justindthomas/flower_as/blob/master/src/java/name/justinthomas/flower/analysis/statistics/StatisticalFlow.java
This is the data accessor:
http://github.com/justindthomas/flower_as/blob/master/src/java/name/justinthomas/flower/analysis/statistics/StatisticsAccessor.java
And here is the class that controls the insertion and retrieval of data:
http://github.com/justindthomas/flower_as/blob/master/src/java/name/justinthomas/flower/analysis/statistics/StatisticsManager.java
The general flow is that a netflow packet is received from a sensor and the StatisticsManager normalizes the flow as it is inserted into the database. The normalization converts the summarized flow into several "resolutions." For example, one resolution might be 5000 ms. So the StatisticsManager takes the flow's end time/5000 - start time/5000 and divides the volume by the result and inserts that data into the database. It sounds kind of confusing, but results in a dataset that allows me to query for netflow activity for any time frame.
It also means that the database is queried as it is written to; existing data is updated more frequently than new data is written.
Regardless, Sleepycat seems to be holding on to more data than it needs to. Once an interval has passed (maybe 5 minutes or so), it is unlikely to be accessed again until queried to create charts. However, the memory usage grows out of control despite the lack of necessity for keeping all but recently entered entries in cache.
This is how the trouble generally starts (note that I've increased the timeout to 15000 ms to try to accommodate for longer wait times, but that just seems to delay the onset of the issue by a day or so):
[#|2010-10-23T13:46:00.854-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=64;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 30264205 -1_pool-6-thread-8_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:32426808 node=17057517 type=READ grant=WAIT_NEW timeoutMillis=15000 startTime=1287866745448 endTime=1287866760795
Owners: [<LockInfo locker="29616818 -1_pool-6-thread-5_ThreadLocker" type="WRITE"/>]
Waiters: [<LockInfo locker="7246740 -1_pool-6-thread-6_ThreadLocker" type="READ"/>, <LockInfo locker="26940477 -1_pool-6-thread-2_ThreadLocker" type="WRITE"/>, <LockInfo locker="5099094 -1_pool-6-thread-4_ThreadLocker" type="READ"/>]
|#]
[#|2010-10-23T15:00:41.343-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=65;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 14184769 -1_pool-6-thread-1_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:32730917 node=17057517 type=READ grant=WAIT_NEW timeoutMillis=15000 startTime=1287871223679 endTime=1287871241341
Owners: [<LockInfo locker="23975039 -1_pool-6-thread-8_ThreadLocker" type="WRITE"/>]
Waiters: [<LockInfo locker="19650664 -1_pool-6-thread-6_ThreadLocker" type="READ"/>]
|#]
[#|2010-10-23T15:32:13.090-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=66;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 17937364 -1_pool-6-thread-7_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:20265315 node=17057517 type=WRITE grant=WAIT_NEW timeoutMillis=15000 startTime=1287873113904 endTime=1287873133089
Owners: [<LockInfo locker="3251671 -1_pool-6-thread-1_ThreadLocker" type="WRITE"/>]
Waiters: [<LockInfo locker="32174859 -1_pool-6-thread-8_ThreadLocker" type="READ"/>, <LockInfo locker="33186148 -1_pool-6-thread-4_ThreadLocker" type="WRITE"/>, <LockInfo locker="17825718 -1_pool-6-thread-2_ThreadLocker" type="READ"/>]
|#]
[#|2010-10-23T15:32:13.096-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=64;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 32174859 -1_pool-6-thread-8_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:20265315 node=17057517 type=READ grant=WAIT_NEW timeoutMillis=15000 startTime=1287873118064 endTime=1287873133092
Owners: [<LockInfo locker="3251671 -1_pool-6-thread-1_ThreadLocker" type="WRITE"/>]
Waiters: [<LockInfo locker="33186148 -1_pool-6-thread-4_ThreadLocker" type="WRITE"/>, <LockInfo locker="17825718 -1_pool-6-thread-2_ThreadLocker" type="READ"/>]
|#]
[#|2010-10-23T15:32:13.367-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=67;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 33186148 -1_pool-6-thread-4_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:20265315 node=17057517 type=WRITE grant=WAIT_NEW timeoutMillis=15000 startTime=1287873118366 endTime=1287873133366
Owners: [<LockInfo locker="3251671 -1_pool-6-thread-1_ThreadLocker" type="WRITE"/>]
Waiters: [<LockInfo locker="17825718 -1_pool-6-thread-2_ThreadLocker" type="READ"/>, <LockInfo locker="25145711 -1_pool-6-thread-6_ThreadLocker" type="READ"/>, <LockInfo locker="5544029 -1_pool-6-thread-5_ThreadLocker" type="READ"/>]
|#]
[#|2010-10-23T15:33:14.030-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=68;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 31602565 -1_pool-6-thread-5_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:11219992 node=17057517 type=WRITE grant=WAIT_NEW timeoutMillis=15000 startTime=1287873175916 endTime=1287873194019
Owners: [<LockInfo locker="27649147 -1_pool-6-thread-2_ThreadLocker" type="WRITE"/>]
Waiters: [<LockInfo locker="3895581 -1_pool-6-thread-7_ThreadLocker" type="WRITE"/>, <LockInfo locker="8345933 -1_pool-6-thread-8_ThreadLocker" type="WRITE"/>, <LockInfo locker="12576013 -1_pool-6-thread-6_ThreadLocker" type="WRITE"/>, <LockInfo locker="5695501 -1_pool-6-thread-1_ThreadLocker" type="WRITE"/>]
|#]
[#|2010-10-23T15:33:23.334-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=64;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 8345933 -1_pool-6-thread-8_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:11219992 node=17057517 type=WRITE grant=WAIT_NEW timeoutMillis=15000 startTime=1287873184851 endTime=1287873203333
Owners: [<LockInfo locker="3895581 -1_pool-6-thread-7_ThreadLocker" type="WRITE"/>]
Waiters: [<LockInfo locker="12576013 -1_pool-6-thread-6_ThreadLocker" type="WRITE"/>, <LockInfo locker="5695501 -1_pool-6-thread-1_ThreadLocker" type="WRITE"/>, <LockInfo locker="13327115 -1_pool-6-thread-4_ThreadLocker" type="READ"/>, <LockInfo locker="11939897 -1_pool-6-thread-5_ThreadLocker" type="READ"/>]
|#]
[#|2010-10-23T15:33:23.344-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=69;_ThreadName=Thread-1;|addStatisticalSeconds Failed: (JE 4.0.104) Lock expired. Locker 12576013 -1_pool-6-thread-6_ThreadLocker: waited for lock on database=persist#Statistics#name.justinthomas.flower.analysis.statistics.StatisticalInterval LockAddr:11219992 node=17057517 type=WRITE grant=WAIT_NEW timeoutMillis=15000 startTime=1287873184893 endTime=1287873203343
Owners: [<LockInfo locker="3895581 -1_pool-6-thread-7_ThreadLocker" type="WRITE"/>]
Waiters: [<LockInfo locker="5695501 -1_pool-6-thread-1_ThreadLocker" type="WRITE"/>, <LockInfo locker="13327115 -1_pool-6-thread-4_ThreadLocker" type="READ"/>, <LockInfo locker="11939897 -1_pool-6-thread-5_ThreadLocker" type="READ"/>]
|#]
Those errors go on and on and on, until I eventually see this:
[#|2010-10-23T17:37:29.876-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=71;_ThreadName=Thread-1;|Exception in thread "ContainerBackgroundProcessor[StandardEngine[com.sun.appserv]]" |#]
[#|2010-10-23T17:37:34.915-0700|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=23;_ThreadName=Thread-1;|In main loop, we have serious trouble: java.lang.OutOfMemoryError: Java heap space|#]
[#|2010-10-23T17:37:56.516-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=66;_ThreadName=Thread-1;|Exception in thread "pool-6-thread-7" |#]
[#|2010-10-23T17:39:11.060-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=23;_ThreadName=Thread-1;|Exception in thread "{felix.fileinstall.poll=5000, felix.fileinstall.bundles.new.start=true, service.pid=org.apache.felix.fileinstall.fd8877ce-71aa-41d2-8ddc-15ce996cde1b, felix.fileinstall.dir=/opt/glassfishv3/glassfish/domains/domain1/autodeploy/bundles/, felix.fileinstall.filename=org.apache.felix.fileinstall-autodeploy-bundles.cfg, service.factorypid=org.apache.felix.fileinstall, felix.fileinstall.debug=1}" |#]
[#|2010-10-23T17:39:11.070-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=66;_ThreadName=Thread-1;|java.lang.OutOfMemoryError: Java heap space
at java.util.IdentityHashMap.init(IdentityHashMap.java:261)
at java.util.IdentityHashMap.<init>(IdentityHashMap.java:207)
at com.sleepycat.je.utilint.IdentityHashMap.<init>(IdentityHashMap.java:25)
at com.sleepycat.je.cleaner.LocalUtilizationTracker.<init>(LocalUtilizationTracker.java:39)
at com.sleepycat.je.recovery.Checkpointer.flushDirtyNodes(Checkpointer.java:665)
at com.sleepycat.je.recovery.Checkpointer.syncDatabase(Checkpointer.java:604)
at com.sleepycat.je.dbi.DatabaseImpl.sync(DatabaseImpl.java:977)
at com.sleepycat.je.dbi.DatabaseImpl.handleClosed(DatabaseImpl.java:863)
at com.sleepycat.je.Database.closeInternal(Database.java:458)
at com.sleepycat.je.Database.close(Database.java:314)
at com.sleepycat.je.SecondaryDatabase.close(SecondaryDatabase.java:331)
at com.sleepycat.persist.impl.Store.closeDb(Store.java:1454)
at com.sleepycat.persist.impl.Store.close(Store.java:1059)
at com.sleepycat.persist.EntityStore.close(EntityStore.java:630)
at name.justinthomas.flower.analysis.persistence.FlowReceiver.addFlow(FlowReceiver.java:94)
at name.justinthomas.flower.analysis.persistence.FlowReceiver.addFlow(FlowReceiver.java:65)
at name.justinthomas.flower.collector.FlowWorker.parseData(FlowWorker.java:382)
at name.justinthomas.flower.collector.FlowWorker.v9(FlowWorker.java:111)
at name.justinthomas.flower.collector.FlowWorker.run(FlowWorker.java:61)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
|#]
[#|2010-10-23T17:39:11.124-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=23;_ThreadName=Thread-1;|java.lang.OutOfMemoryError: Java heap space
|#]
[#|2010-10-23T17:39:11.141-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=72;_ThreadName=Thread-1;|Exception in thread "pool-6-thread-3" |#]
[#|2010-10-23T17:39:11.144-0700|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=72;_ThreadName=Thread-1;|java.lang.OutOfMemoryError: Java heap space
|#]
It's very frustrating, because things run so well at first and then just deteriorate into a resource nightmare. Any suggestions would be welcome. The application is running with 3 CPU cores and 2GB RAM.
Edited by: justindthomas on Oct 23, 2010 7:19 PM: I initially tried to use the forum's "URL" mechanism, but that doesn't seem to work worth anything, so I un-did it.I've disabled that thread for now. While debugging that, I ran into a SecondaryIntegrityException and I read that I shouldn't use secondary indexes without also using transactions. I enabled transactional processing, but the locking issues grew far worse. I opted to find ways to not use secondary indexes instead.You're right that with secondaries it is important to use txns. But I'm not sure why you're having such severe locking problems with txns. Were you using a txn with a cursor, to perform a scan? If so, I can probably suggest ways of doing that without the txn, if you can describe what you're doing and/or point me to your source code. Or, perhaps you've decided not to use secondaries, and this isn't an issue anymore?
--mark -
Session Timeouts and SmbServer
Hi,
When having iFS mapped to a network drive (via SMB), the SMB server
is unable to recover from a timeout of the LibrarySession. The network
drive then seems to be empty and doing a refresh within explorer
doesn't help either. The only thing that helps, is remapping the
network drive.
Within Node.log of iFS I see this stacktrace.
7/10/02 9:02 AM SmbServer: oracle.ifs.common.IfsException
oracle.ifs.common.IfsException: IFS-21000: Session is not connected or has timed-out
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at oracle.ifs.common.IfsException.<init>(Compiled Code)
at oracle.ifs.common.IfsException.<init>(Compiled Code)
at oracle.ifs.common.IfsException.<init>(Compiled Code)
at oracle.ifs.beans.LibraryObject.verifyConnected(Compiled Code)
at oracle.ifs.beans.Folder.findPublicObjectByPath(Compiled Code)
at oracle.ifs.beans.FolderPathResolver.findPublicObjectByPath(Compiled Code)
at oracle.ifs.beans.FolderPathResolver.findPublicObjectByPath(Compiled Code)
at oracle.ifs.protocols.smb.server.DbTree$DbQuery.<init>(Compiled Code)
at oracle.ifs.protocols.smb.server.DbTree.getQuery(Compiled Code)
at oracle.ifs.protocols.smb.server.ComTrans.trans2FindFirst(Compiled Code)
at oracle.ifs.protocols.smb.server.ComTrans.replyTransaction2(Compiled Code)
at oracle.ifs.protocols.smb.server.ComTrans.process(Compiled Code)
at oracle.ifs.protocols.smb.server.ComSmb.handleSmbMessage(Compiled Code)
at oracle.ifs.protocols.smb.server.SmbThread.handleNbMessage(Compiled Code)
at oracle.ifs.protocols.smb.server.SmbThread.readPackets(Compiled Code)
at oracle.ifs.protocols.smb.server.SmbThread.run(Compiled Code)
This behavior actually causes us big problems when editing files via MS Office.
Fortunately Office is able to still save it's data using some generated filename.
(At least until now I could not create any data loss)
But then you have to close it, remap then network drive, rename the file and then
reopen the file. This is big trouble to users, which are not familiar with mapping
network drives and renaming files with extensions.
Is there a way to make the SmbServer keep the LibrarySession alive, as long as
the network drive is mapped ?
Regards,
Jens LorenzWorkflow #2:
Login to my account
Click view all email
Open Drafts Folder
Open draft email response
Select "Send" to send email (total in session time of 30 seconds)
On screen reload, where I would expect to see some sort of indication that my email was successfully sent, instead the system throws session time out message and kicks me out.
I have no idea if my email was successfully sent or not.
Workflow #3:
Login to my account
Click view all email
Attempted to open the first new email in my inbox (total time in session <15 seconds)
System throws session timeout error and kicks me out to the main login.
There is obviously something going on with your session holding code. The session variable is not being passed correctly or something but it's very, very frustrating to spend 30-45 minutes trying to type out a couple of lines, particularly when you have multiple important activities going on that you need to respond too via email. -
Webmail timeouts and lost mail
I have seen several topics here with people complaining that Webmail times out when they are composing outgoing mail, and lose it when they hit send. However, none of these existing posts seem to have valid fixes or responses, and they all seem to be locked down to prevent new comments, so here is my two cents:
1. I have absolutely experienced the same thing. I've finally gotten into the habit of composing e-mail in an external editor, because I am sick and tired of wasting time recomposing lost e-mail.
2. The Verizon FAQ states two, contradictory policies, both of which are inaccurate:
http://www22.verizon.com/ResidentialHelp/HighSpeed/Email/Setup+And+Use/QuestionsOne/121965.htm:
Does Webmail time me out?
Webmail does not timeout due to inactivity.
http://www22.verizon.com/ResidentialHelp/HighSpeed/Email/Setup%20And%20Use/QuestionsOne/123344.htm
Does Webmail time out?
Due to security reasons, Webmail Basic does timeout after 20 minutes of inactivity. However, messages that were being composed before your session timed out will be saved in the DRAFTS folder.
The first one is outright wrong. Webmail absolutely, positively DOES time out.
The second one is wrong, at least in some circumstances. I have no doubt that this is their desired policy, but like many other customers, I'm here to tell you that under at least some circumstances, Webmai-l times out in as little as 5 minutes, and in these same circumstances, IT DOES NOT SAVE YOUR COMPOSED E-MAIL TO THE DRAFTS FOLDER. It simplay takes you to the log in screen, and when you log back in, your text is irretrievably gone. Verizon Webmail has not auto-saved anything for me in at least a year.
3. I have a theory as to what is going on here, and I am testing it today. Maybe one or two other folks can try this, too. I will report back whatever I find:
I access Webmail through an old bookmark which is defined as http://netmail.verizon.net/webmail/driver?nimlet=deggetfolder
However, I notice that if I login fresh from www.verizon.net and navigate to Webmail, I GET DIFFERENT SESSION COOKIES THAN I DO FROM THE ABOVE BOOKMARK. For example, I get a cookie called -_WL_AUTHCOOKIE_VZCSESSIONID which is not present when I log in using the old bookmark.. There are a couple of other variations, but this seems the most suspicious.
So, my theory is that those of us who often lose composed e-mail after ridiculously short time outs, are logging in from old bookmarks, and that things changed underneath us at some point during a Verizon Webmail update. I am going to try usng Webmail today from a fresh login, after first clearing out all my existing Verizon cookies, and see if this results in longer sessions without timing out, and saved messages when it does time out.Oh, and don't even get me started on SEARCH for text within a message. This has never worked, from Day One.
All I ever get is "We were unable to perform your request. Please try again." SEARCH on header text, like Sender and Subject works fine, but apparently Verizon QA has never tested the other options on large mail inboxes.
I'm pretty forgiving and undersrtanding of minor glitches and shortcomings in software, but Verizon Webmail is one of the most unreliable utilities that I've ever encountered from a large company with a huge customer base.
Maybe you are looking for
-
Import file to GUI! Need help!!!
Hi everyone, I have a question regarding to "importing file". I will appreciate any help! I want to use text file in my program. What I need is "file path" to the file in computer so that i can read this text file to filter the necessary information
-
How SAP handles Child Idoc segment data insertion automatically
Hello, We have some Infotypes with extra segments and IDocs are getting created with Parent and child segments. To fill the data into the parent/child segments, we are currently using User-Exits. Is there any settings/config in table level(e.g. T777D
-
Mac app store needs my apple id?
I have recently switched computers and have given my old macbook to a family member. I deleted my home folder and account and they made their own. However I left all of my apps on the mac. and now when they try to update them, they need my apple id?
-
How to focus the tab in Firefox 3.6 (to move to beginning/end)
I believe in previous versions of Firefox, when the tab was focused, you could use the keyboard shortcuts ctrl+end or ctrl+home to move the focused tab to either the end or beginning of your tabs. This functionality no longer seems to work, I believe
-
Can I change the OS of Touchsmart 610 from Windows Home Premium to Windows 7 Pro?
I have 610 1100me system loaded with Windows Home Premium 64 bit. We bought it from Dubai and is in use in Pakistan. It started giving problems after few weeks of use. Its' hard disk makes noise and sometimes, system could not find boot disk. Mos