EnterpriseDB: The Enterprise Postgres Company Postgres Plus Forums: The PostgreSQL Open Source Database from EnterpriseDB
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 

can not run more than one gs-loader.sh in one mathine?  XML

Forum Index » GridSQL - Developers
Author Message
harry_zhang

New member

Joined: 2 Nov 2010 07:27:29
Messages: 8
Offline

can not run more than one gs-loader.sh in one mathine?

hello,

i want to run muti gs-loader.sh on one mathine?
but when i run the second gs-load.sh ,there some error message。。。

[root@KVMHost-00237d54fa0a data]# gs-loader.sh
Error occurred during initialization of VM
Could not reserve enough space for the card marking array
[root@KVMHost-00237d54fa0a data]#

how can i do?

thank you !
Andrei_M

Senior member

Joined: 19 Dec 2008 01:37:13
Messages: 116
Offline

you can edit gs-load.sh and lower amount of memory passed in -Xmx parameter passed to Java or install more memory

Thanks
Andrei
harry_zhang

New member

Joined: 2 Nov 2010 07:27:29
Messages: 8
Offline

good!

thank you Andrei_M~

when i add the -Xmx573741824 ,it is work!



#!/bin/sh
##########################################################################
#
# Copyright (C) 2010 EnterpriseDB Corporation.
#
# gs-loader.sh
#
#
# Loads an GridSQL database
#
##########################################################################

EXECCLASS=com.edb.gridsql.util.XdbLoader

DIRNAME=`dirname $0`

if [ -f $DIRNAME/../gridsql_env.sh -a -z "$GSPATH" ]
then
source $DIRNAME/../gridsql_env.sh
fi

GSCONFIG=$GSPATH/config/gridsql.config

#java -classpath ${GSPATH}/bin/xdbutil.jar:${CLASSPATH}:${GSPATH}/lib/edb-jdbc14.jar:${GSPATH}/lib/log4j.jar -Xms4073741824 -Dconfig.file.path=${GSCONFIG} $EXECCLASS "$@"

java -classpath ${GSPATH}/bin/xdbutil.jar:${CLASSPATH}:${GSPATH}/lib/edb-jdbc14.jar:${GSPATH}/lib/log4j.jar -Xmx573741824 -Dconfig.file.path=${GSCONFIG} $EXECCLASS "$@"
#java -classpath ${GSPATH}/bin/xdbutil.jar:${CLASSPATH}:${GSPATH}/lib/edb-jdbc14.jar:${GSPATH}/lib/log4j.jar -Dconfig.file.path=${GSCONFIG} $EXECCLASS "$@"
harry_zhang

New member

Joined: 2 Nov 2010 07:27:29
Messages: 8
Offline

good!

thank you Andrei_M~

when i add the -Xmx573741824 ,it is work!



#!/bin/sh
##########################################################################
#
# Copyright (C) 2010 EnterpriseDB Corporation.
#
# gs-loader.sh
#
#
# Loads an GridSQL database
#
##########################################################################

EXECCLASS=com.edb.gridsql.util.XdbLoader

DIRNAME=`dirname $0`

if [ -f $DIRNAME/../gridsql_env.sh -a -z "$GSPATH" ]
then
source $DIRNAME/../gridsql_env.sh
fi

GSCONFIG=$GSPATH/config/gridsql.config

#java -classpath ${GSPATH}/bin/xdbutil.jar:${CLASSPATH}:${GSPATH}/lib/edb-jdbc14.jar:${GSPATH}/lib/log4j.jar -Xms4073741824 -Dconfig.file.path=${GSCONFIG} $EXECCLASS "$@"

java -classpath ${GSPATH}/bin/xdbutil.jar:${CLASSPATH}:${GSPATH}/lib/edb-jdbc14.jar:${GSPATH}/lib/log4j.jar -Xmx573741824 -Dconfig.file.path=${GSCONFIG} $EXECCLASS "$@"
#java -classpath ${GSPATH}/bin/xdbutil.jar:${CLASSPATH}:${GSPATH}/lib/edb-jdbc14.jar:${GSPATH}/lib/log4j.jar -Dconfig.file.path=${GSCONFIG} $EXECCLASS "$@"
 
Forum Index » GridSQL - Developers
Go to:   
Powered by JForum 2.1.8 © JForum Team