Internal Website Search

1-50 of 56 results

Setting and Tuning of JPA Queries

supports the following query hints: "javax.persistence.query. timeout " - sets maximum query execution time in milliseconds. A  QueryTimeoutException  is thrown if timeout is exceeded. "javax.persistence.lock. timeout " - sets maximum waiting time for pessimistic locks, when pessimistic locking

Locking in JPA

(on the second lock request). Pessimistic Lock Timeout By default, when a pessimistic lock conflict occurs a LockTimeoutException is thrown immediately. The "javax.persistence.lock. timeout "  hint ... ; properties.put("javax.persistence.lock. timeout ", 2000);   EntityManagerFactory emf =  

General Settings and Logging

and kilobytes (respectively). The element The element has one attribute, inactivity- timeout , which specifies when network sockets become obsolete as a result of inactivity. The value is the timeout in seconds, where 0 indicates never (no inactivity timeout ). The inactivity timeout (when 0

Pessimistic Lock Timeouts setting

Hi,   I realise that JPA2 doesn't necessarily define a standard API way for Lock Timeouts ... a record for a specific time. The hint property is: "javax.persistence.lock. timeout " I have a situation ... on stale updates. Willks William Support of pessimistic lock timeout  setting ( javax.persistence

Set timeout for BatchQueryItr

but i wonder if it's possible to put a timeout for too long query. Regards, Xirt xirt Sylvain ... ( unknown source ) xirt Sylvain You can set a query execution timeout as a query hint . The many

ObjectDB Object Database Features

. Configurable - minimum/maximum connections and timeout . Caching L1 entity object cache

Pessimistic lock timeout - blocks indefinitely

to update the object. I'm using a pessimistic lock with timeout as follows: Map properties = new HashMap (); properties.put("javax.persistence.lock. timeout ", 5000); MyEntity loaded = em.find(MyEntity ... set the timeout to less than 1000ms the blocked threads get released at the correct time but thrown

javax.persistence.StoredProcedureQuery

exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2 ... been joined to the transaction QueryTimeoutException - if the statement execution exceeds the query timeout

javax.persistence.Query

- if the statement execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction ... UPDATE or DELETE statement QueryTimeoutException - if the query execution exceeds the query timeout

javax.persistence.TypedQuery

timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Inherited from: Query ... QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement

ObjectDB is opening too many sockets

, it is an SSLSeverSocketIml . The accept method has a timeout of one second and after that timeout another accept ... ;with a timeout of 2 seconds, in a loop, in order to check for server stop requests. Looking at the source code ... accept with a timeout . Build 2.8.5_07 now switches to the other method of calling accept with no timeout

ODB-WeakRefPurger threads not closing at all

operation is slow, it may indicate that this timeout may not be sufficient. support Support I am closing ... connections. Is the timeout for closing purger threads configurable, so I could try raising ... ;Is the timeout for closing purger threads configurable, so I could try raising it? No, but the 2-seconds

javax.persistence.EntityManager

, it is silently ignored. Portable applications should not rely on the standard timeout hint. Depending ... should not rely on the standard timeout hint. Depending on the database in use and the locking ... on the standard timeout hint. Depending on the database in use and the locking mechanisms used by the provider

Server connection management

a few seconds after it becomes accessible again. Inactivity Timeout You can set the inactivity timeout ... . Anyway, try using the inactivity timeout that probably may solve the problem. support Support I'm getting

OptimisticLockException

process B block, or fail with an exception? If B blocks is there a timeout ? c) to configure ... process A, does process B block, or fail with an exception? If B blocks is there a timeout ? Default is immediate failure, timeout can be set -  see the documentation . c) to configure pessimistic

Occasionally slow requests in load testing

configurable timeout on the client size and ideally also ability to retry.  Kind regards, Natalia ... configurable timeout on the client size and ideally also ability to retry. You can try setting a timeout for queries (using a hint ).   support Support

Log is almost empty (log level 'trace')

zero inactivity timeout (e.g. 600 seconds) may solve the problem. support Support Well, I know ... issue about SO_REUSE but I honestly dont see any relation. I'll try to play with inactivity timeout ... . If it happens again after setting inactivity timeout , please report, and we will try to find the cause by adding

Query.executeUpdate() - JPA Method

QueryTimeoutException - if the statement execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value

StoredProcedureQuery.hasMoreResults() - JPA Method

to result set Throws: QueryTimeoutException - if the query execution exceeds the query timeout value set ... the query timeout value set and the transaction is rolled back Since: JPA 2.1

StoredProcedureQuery.getSingleResult() - JPA Method

QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.1

StoredProcedureQuery.getResultList() - JPA Method

: QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.1

Query.getResultStream() - JPA Method

execution exceeds the query timeout value set and only the statement is rolled ... timeout value set and the transaction is rolled back See Also: Stream getResultList () Since: JPA 2.2

StoredProcedureQuery.getUpdateCount() - JPA Method

: QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.1

Query.getSingleResult() - JPA Method

the query timeout value set and only the statement is rolled back TransactionRequiredException ... and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 1.0

Query.getResultList() - JPA Method

- if the query execution exceeds the query timeout value set and only the statement is rolled ... the query timeout value set and the transaction is rolled back Since: JPA 1.0

TypedQuery.getSingleResult() - JPA Method

the query timeout value set and only the statement is rolled back TransactionRequiredException - if a lock ... is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.0

TypedQuery.getResultList() - JPA Method

- if the query execution exceeds the query timeout value set and only the statement is rolled ... the query timeout value set and the transaction is rolled back Since: JPA 2.0

TypedQuery.getResultStream() - JPA Method

execution exceeds the query timeout value set and only the statement is rolled ... timeout value set and the transaction is rolled back See Also: Stream getResultList () Since: JPA 2.2

StoredProcedureQuery.executeUpdate() - JPA Method

- if the statement execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.1

StoredProcedureQuery.execute() - JPA Method

set Throws: QueryTimeoutException - if the query execution exceeds the query timeout value set ... timeout value set and the transaction is rolled back Since: JPA 2.1

Improvement in replication

kind of timeout for replicated transaction. So in case when master dies in the middle of transaction ... 'phase' will gradually timeout after switching to master. This isn't the most beautiful solution

Glassfish 3.1.2.1 and ObjectDB 2.4.3

-keep-alive-seconds 60 thread-queue-capacity 2147483647 allow-core-thread- timeout false INFO: SEC1002 ... thread-queue-capacity 2147483647 allow-core-thread- timeout false INFO: SEC1002: Security Manager

Lock prevents PersistenceManager.close when retainValues = false

: - None "JMX server connection timeout 18" - Thread t@18 java.lang.Thread.State: TIMED_WAITING at java.lang ... $ Timeout .run(ServerCommunicatorAdmin.java:168) at java.lang.Thread.run(Thread.java:748) Locked ownable

[ODB1] Chapter 8 - ObjectDB Server

until some open connection is closed or until a timeout specified on the client side is exceeded. The role of the timeout attribute in the server configuration file is different. It specifies

Query.setHint(hintName,value) - JPA Method

applications should not rely on the standard timeout hint. Depending on the database in use

TypedQuery.setHint(hintName,value) - JPA Method

. Portable applications should not rely on the standard timeout hint. Depending on the database in use

EntityManager.refresh(entity,lockMode,properties) - JPA Method

on the standard timeout hint. Depending on the database in use and the locking mechanisms used by

EntityManager.lock(entity,lockMode,properties) - JPA Method

rely on the standard timeout hint. Depending on the database in use and the locking mechanisms used

StoredProcedureQuery.setHint(hintName,value) - JPA Method

must be silently ignored. Portable applications should not rely on the standard timeout hint. Depending

EntityManager.find(entityClass,primaryKey,lockMode,properties) - JPA Method

should not rely on the standard timeout hint. Depending on the database in use and the locking

EntityManager creation taking long time

that you think may be leading to this situation? Are there any timeouts that can be configured to prevent

How to minimize downtime at clustering.

I have run master and slave in 2 different remote servers when master goes off and my app get connecting to slave but it have downtime aprox. 20 sec.How can i minimize this? Manoj Manoj Kumar Maharana The timeout for switching from the master to the slave is currently not configurable

Session lost

It may be a firewall restriction. If it is, specifying inactivity timeout in ObjectDB configuration may solve the problem. support Support

retrieval again and again started

issue. There are many query execution timeout exceptions in the new log. Did you set a limit of 10 ... timeout exception (log #126), so hopefully we are still in the scope of query executions timeout ... that are not related to query execution timeout and if there are side effects such as slowness

ObjectDB 2.3.1

UnsupportedOperationException  error message. Fixed a pessimistic lock timeout bug ( issue #520 ). Fixed ... . Fixed a Doctor and Replication regression (Type session exceeds timeout ). Removed  Conflicting modifiers  validation check and error message.

each 1-2 days objects on some objectdb level lock/block each other

; query timeout could also help, at least to kill queries that no one is waiting for them anymore, e.g. after a user refresh the page. support Support we already have a query timeout . All the client

ObjectDB 2.2.4

Added support of JPA UPDATE and DELETE queries ( issue #12 ). Added support of pessimistic lock timeout ( javax.persistence.lock. timeout ). Added implementation of the getParameters method. Added exception on pessimistic locking retrieval with no active transaction. Improved support of entity

ODB Server tries to write a log file to a weird location

We are testing client-server architecture. Our server has the following config: path = "$temp" threshold = "64mb" / inactivity- timeout = "0" / size = "0" user = "true" password = "true" / path ... = "$temp" threshold = "64mb" /                 inactivity- timeout

Freeze during save

.concurrent.ThreadPoolExecutor$Worker) "JMX server connection timeout 74" - Thread t@74 java.lang.Thread ... .remote.internal.ServerCommunicatorAdmin$ Timeout .run(ServerCommunicatorAdmin.java:168) at java.lang.Thread

log entry and massive performance issues

, it was created when a query that normally takes around 5 seconds was terminated by the timeout that we have set