openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sutter" <kwsut...@gmail.com>
Subject Possible performance concerns?
Date Thu, 26 Oct 2006 02:24:44 GMT
Hi,
We're doing some primitive performance comparisons and the results could be
better...  I'm wondering whether there are some configuration properties
that need to be tweaked to get more suitable performance.  I've enabled the
DataCache and the QueryCache via the following properties, but they didn't
help much:

            <property name="openjpa.DataCache" value="true"/>
            <property name="openjpa.RemoteCommitProvider" value="sjvm"/>
            <property name="openjpa.QueryCache" value="CacheSize=1000,
SoftReferenceSize=100"/>

Looking at some of the thread dumps in sample executions, there seems to be
a common theme with this reflective classloading.  (The sample is a simple
jpql finder invocation that uses getSingleResult().)  Is this normal
processing?  Or, is there some configuration option(s) that would help with
this?  Thanks for any ideas.

(BTW, this callstack is from a 0.9.0 driver, but we have also reproduced
this with a 0.9.5 driver as well.)

4XESTACKTRACE          at
java/lang/ClassLoader.loadClass(ClassLoader.java:561(Compiled
Code))
4XESTACKTRACE          at java/lang/Class.forNameImpl(Native Method)
4XESTACKTRACE          at java/lang/Class.forName(Class.java:164(Compiled
Code))
4XESTACKTRACE          at serp/util/Strings.toClass(Strings.java:160(Compiled
Code))
4XESTACKTRACE          at serp/util/Strings.toClass(Strings.java:140(Compiled
Code))
4XESTACKTRACE          at org/apache/openjpa/kernel/QueryImpl.toClass(
QueryImpl.java:1552(Compiled Code))
4XESTACKTRACE          at org/apache/openjpa/kernel/QueryImpl.classForName(
QueryImpl.java:1499(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/ExpressionStoreQuery$1.classForName(
ExpressionStoreQuery.java:104(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.getPathOrConstant(
JPQLExpressionBuilder.java:1247(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.eval(
JPQLExpressionBuilder.java:861(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.getValue(
JPQLExpressionBuilder.java:1356(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.getValue(
JPQLExpressionBuilder.java:1342(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.eval(
JPQLExpressionBuilder.java:702(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.getExpression(
JPQLExpressionBuilder.java:1333(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.eval(
JPQLExpressionBuilder.java:709(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.evalWhereClause(
JPQLExpressionBuilder.java:484(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/jpql/JPQLExpressionBuilder.getQueryExpressions(
JPQLExpressionBuilder.java:261(Compiled Code))
4XESTACKTRACE          at org/apache/openjpa/kernel/jpql/JPQLParser.eval(
JPQLParser.java:58(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/ExpressionStoreQuery$DataStoreExecutor.<init>(
ExpressionStoreQuery.java:648(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/ExpressionStoreQuery.newDataStoreExecutor(
ExpressionStoreQuery.java:162(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/QueryImpl.createExecutor(QueryImpl.java:675(Compiled
Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/QueryImpl.compileForDataStore(QueryImpl.java:633(Compiled
Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/QueryImpl.compileForExecutor(QueryImpl.java:609(Compiled
Code))
4XESTACKTRACE          at org/apache/openjpa/kernel/QueryImpl.getOperation(
QueryImpl.java:1421(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/kernel/DelegatingQuery.getOperation(DelegatingQuery.java:120(Compiled
Code))
4XESTACKTRACE          at org/apache/openjpa/persistence/QueryImpl.execute(
QueryImpl.java:205(Compiled Code))
4XESTACKTRACE          at
org/apache/openjpa/persistence/QueryImpl.getSingleResult(QueryImpl.java:271(Compiled
Code))

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message