|
From: Christian <chr...@ta...> - 2010-04-22 06:12:49
|
Hi, Usually the jvm inherits the whole environment from the wrapper. so when you started the wrapper preloading libumem both, the wrapper as well as the JVM, will use libumem. I assume you want to preload your JVM exclusively libumem. That would be possible using the environment definition routines of the wrapper; please have a look at this site: http://wrapper.tanukisoftware.org/doc/english/props-envvars.html#definition adding the following line should cause your JVM being generated using libumem rather than the standard library for memory allocation: set.LD_PRELOAD=/usr/lib/libumem.so additionally you can also set the value for LD_PRELOAD_64 at the same place to preload the 64bit libumem. pldd 623 623: /export/home/chris/340/wrapper_prerelease_3.4.0-pro/bin/./wrapper /exp /usr/lib/libsocket.so.1 /usr/lib/libpthread.so.1 /usr/lib/libnsl.so.1 /usr/lib/libm.so.1 /usr/lib/librt.so.1 /usr/lib/libc.so.1 /usr/lib/libdl.so.1 /usr/lib/libmp.so.2 /usr/lib/libaio.so.1 /usr/lib/libmd5.so.1 /usr/lib/libthread.so.1 pldd 624 624: /usr/jdk/jdk1.6.0_14/bin/java -Djava.library.path=../lib -classpath .. /usr/lib/libumem.so.1 /usr/lib/libthread.so.1 /usr/jdk/jdk1.6.0_14/jre/lib/i386/jli/libjli.so /usr/lib/libdl.so.1 /usr/lib/libc.so.1 /usr/jdk/jdk1.6.0_14/jre/lib/i386/client/libjvm.so /usr/lib/libsocket.so.1 /usr/lib/libsched.so.1 /usr/lib/libm.so.1 /usr/lib/libCrun.so.1 /usr/lib/libdoor.so.1 /usr/lib/libnsl.so.1 /usr/lib/libmp.so.2 /usr/jdk/jdk1.6.0_14/jre/lib/i386/libverify.so /usr/jdk/jdk1.6.0_14/jre/lib/i386/libjava.so /usr/jdk/jdk1.6.0_14/jre/lib/i386/native_threads/libhpi.so /usr/jdk/jdk1.6.0_14/jre/lib/i386/libzip.so /usr/jdk/jdk1.6.0_14/jre/lib/i386/libmanagement.so /export/home/wrapper/lib/libwrapper.so /usr/lib/librt.so.1 /usr/lib/libaio.so.1 /usr/lib/libmd5.so.1 /usr/jdk/jdk1.6.0_14/jre/lib/i386/libnet.so /usr/jdk/jdk1.6.0_14/jre/lib/i386/libawt.so /usr/jdk/jdk1.6.0_14/jre/lib/i386/headless/libmawt.so Hope this is the answer to your question. Best Regards, Christian On Wed, 2010-04-21 at 23:55 +0300, Tomer B wrote: > We’re in process to migrate our app to Solaris x86. Due to some memory > allocation enhancements we would like to use libumem Solaris memory. > To make it work JVM should have system environment LD_PRELOAD or > LD_PRELOAD_64. The problem that if we use preload before wrapper > launch it does not transfer the config further to jvm. And it is not > clear how to configure wrapper to make it work. > > > Could you help please? > > Thanks > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user |