Hi,
I have 2 SQLF members and 1 locator and I have started members with below command:
sqlf server start -J-Dsqlfire.language.maxMemoryPerTable=104448 -J-Xmx1024m -dir=server2 -rebalance
-client-bind-address=yyy.yyy.y.yyy -client-port=1530 -locators=192.168.2.101:3241
-host-data=true -statistic-sampling-enabled=true -enable-time-statistics=true
-enable-stats=true -enable-timestats=true -archive-file-size-limit=1024
-statistic-archive-file=system_stats.data -statistic-sample-rate=3000 &
and am running some load test scripts and 30 concurrent users logging to application and each one will execute queries which will create 30,000 resultsets and all these concurrent users are accessing database under a REQUIRED transaction and each transaction is to retrieve records from table and convert them as POJO's
I get Java OutOfMemory exception when I run the test scripts can you pls suggest what I need to do, pls find the stack trace below:
[info 2011/12/19 09:29:31.803 GMT SQLF: <Function Execution Processor14> tid=0xa2] (XID = 66(UserTransaction)@1fae9f7;supportsTX=true), (SESSIONID = 28), (DATABASE = sqlfire), (DRDAID = null), Failed Statement is: SELECT A.* FROM INSURANCE.CUSTOMERS A LEFT JOIN INSURANCE.POLICIES B ON B.CUST_NO = A.PRIMARY_CUST_NO WHERE CUST_PRIMARY IN (<?>) with 1 parameters ConstantValueSet@17bf32b constants: Y,
ERROR XJ001: Java exception: 'Java heap space: java.lang.OutOfMemoryError'.
at com.vmware.sqlfire.internal.iapi.error.StandardException.newException(StandardException.java:155)
at com.vmware.sqlfire.internal.engine.Misc.wrapSQLException(Misc.java:564)
at com.vmware.sqlfire.internal.engine.Misc.wrapRemoteSQLException(Misc.java:549)
at com.vmware.sqlfire.internal.engine.Misc.processFunctionException(Misc.java:464)
at com.vmware.sqlfire.internal.engine.sql.execute.AbstractGemFireDistributionActivation.executeWithResultSet(AbstractGemFireDistributionActivation.java:410)
at com.vmware.sqlfire.internal.engine.sql.execute.AbstractGemFireActivation.execute(AbstractGemFireActivation.java:127)
at com.vmware.sqlfire.internal.impl.sql.GenericActivationHolder.execute(GenericActivationHolder.java:397)
at com.vmware.sqlfire.internal.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:452)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1657)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:940)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:732)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedStatement.executeQuery(EmbedStatement.java:261)
at com.csc.ace.sqlfire.storeproc.CustomerSearchProcedure.searchCustomer(CustomerSearchProcedure.java:98)
at com.vmware.sqlfire.internal.exe.acc934c123x0134x550ax997ax000000e268480.g0(Unknown Source)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.vmware.sqlfire.internal.impl.services.reflect.ReflectMethod.invoke(ReflectMethod.java:46)
at com.vmware.sqlfire.internal.impl.sql.execute.CallStatementResultSet.open(CallStatementResultSet.java:122)
at com.vmware.sqlfire.internal.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:463)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1657)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedPreparedStatement.executeStatement(EmbedPreparedStatement.java:1735)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedCallableStatement.executeStatement(EmbedCallableStatement.java:128)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedPreparedStatement.execute(EmbedPreparedStatement.java:1387)
at com.vmware.sqlfire.internal.engine.procedure.DistributedProcedureCallFunction.execute(DistributedProcedureCallFunction.java:147)
at com.gemstone.gemfire.internal.cache.execute.AbstractExecution.executeFunctionLocally(AbstractExecution.java:319)
at com.gemstone.gemfire.internal.cache.execute.AbstractExecution$1.run(AbstractExecution.java:258)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at com.gemstone.gemfire.distributed.internal.DistributionManager.runUntilShutdown(DistributionManager.java:576)
at com.gemstone.gemfire.distributed.internal.DistributionManager$8$1.run(DistributionManager.java:996)
at java.lang.Thread.run(Unknown Source)
============= end nested exception, level (2) ===========
Cleanup action completed
SystemFailure Watchdog: [warning] Since this is a dedicated cache server and the JVM has been corrupted, this process will now terminate. Permission to call System#exit(int) was given in the following context.
java.lang.Throwable: SystemFailure exitOK set
at com.gemstone.gemfire.SystemFailure.setExitOK(SystemFailure.java:235)
at com.gemstone.gemfire.internal.cache.CacheServerLauncher.server(CacheServerLauncher.java:580)
at com.vmware.sqlfire.tools.internal.SqlfServerLauncher.run(SqlfServerLauncher.java:489)
at com.vmware.sqlfire.tools.internal.SqlfServerLauncher.main(SqlfServerLauncher.java:465)[info 2011/12/19 09:29:31.803 GMT SQLF: <Function Execution Processor14> tid=0xa2] (XID = 66(UserTransaction)@1fae9f7;supportsTX=true), (SESSIONID = 28), (DATABASE = sqlfire), (DRDAID = null), Failed Statement is: SELECT A.* FROM INSURANCE.CUSTOMERS A LEFT JOIN INSURANCE.POLICIES B ON B.CUST_NO = A.PRIMARY_CUST_NO WHERE CUST_PRIMARY IN (<?>) with 1 parameters ConstantValueSet@17bf32b constants: Y,
ERROR XJ001: Java exception: 'Java heap space: java.lang.OutOfMemoryError'.
at com.vmware.sqlfire.internal.iapi.error.StandardException.newException(StandardException.java:155)
at com.vmware.sqlfire.internal.engine.Misc.wrapSQLException(Misc.java:564)
at com.vmware.sqlfire.internal.engine.Misc.wrapRemoteSQLException(Misc.java:549)
at com.vmware.sqlfire.internal.engine.Misc.processFunctionException(Misc.java:464)
at com.vmware.sqlfire.internal.engine.sql.execute.AbstractGemFireDistributionActivation.executeWithResultSet(AbstractGemFireDistributionActivation.java:410)
at com.vmware.sqlfire.internal.engine.sql.execute.AbstractGemFireActivation.execute(AbstractGemFireActivation.java:127)
at com.vmware.sqlfire.internal.impl.sql.GenericActivationHolder.execute(GenericActivationHolder.java:397)
at com.vmware.sqlfire.internal.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:452)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1657)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:940)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:732)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedStatement.executeQuery(EmbedStatement.java:261)
at com.csc.ace.sqlfire.storeproc.CustomerSearchProcedure.searchCustomer(CustomerSearchProcedure.java:98)
at com.vmware.sqlfire.internal.exe.acc934c123x0134x550ax997ax000000e268480.g0(Unknown Source)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.vmware.sqlfire.internal.impl.services.reflect.ReflectMethod.invoke(ReflectMethod.java:46)
at com.vmware.sqlfire.internal.impl.sql.execute.CallStatementResultSet.open(CallStatementResultSet.java:122)
at com.vmware.sqlfire.internal.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:463)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1657)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedPreparedStatement.executeStatement(EmbedPreparedStatement.java:1735)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedCallableStatement.executeStatement(EmbedCallableStatement.java:128)
at com.vmware.sqlfire.internal.impl.jdbc.EmbedPreparedStatement.execute(EmbedPreparedStatement.java:1387)
at com.vmware.sqlfire.internal.engine.procedure.DistributedProcedureCallFunction.execute(DistributedProcedureCallFunction.java:147)
at com.gemstone.gemfire.internal.cache.execute.AbstractExecution.executeFunctionLocally(AbstractExecution.java:319)
at com.gemstone.gemfire.internal.cache.execute.AbstractExecution$1.run(AbstractExecution.java:258)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at com.gemstone.gemfire.distributed.internal.DistributionManager.runUntilShutdown(DistributionManager.java:576)
at com.gemstone.gemfire.distributed.internal.DistributionManager$8$1.run(DistributionManager.java:996)
at java.lang.Thread.run(Unknown Source)
============= end nested exception, level (2) ===========
Cleanup action completed
SystemFailure Watchdog: [warning] Since this is a dedicated cache server and the JVM has been corrupted, this process will now terminate. Permission to call System#exit(int) was given in the following context.
java.lang.Throwable: SystemFailure exitOK set
at com.gemstone.gemfire.SystemFailure.setExitOK(SystemFailure.java:235)
at com.gemstone.gemfire.internal.cache.CacheServerLauncher.server(CacheServerLauncher.java:580)
at com.vmware.sqlfire.tools.internal.SqlfServerLauncher.run(SqlfServerLauncher.java:489)
at com.vmware.sqlfire.tools.internal.SqlfServerLauncher.main(SqlfServerLauncher.java:465)