2 Replies Latest reply on Jan 8, 2015 6:21 AM by lzmuda

    Change java.io.tmpdir for storage process

    lzmuda

      Hi,

       

      Does anyone know, how can I change temporary directory used by java, from default /tmp to other directory for storage process? I tried to change it in few config files but without any success, storage is still using /tmp. I have to change it, my /tmp is to small.

       

      Regards

      Lukasz

        • 1. Re: Change java.io.tmpdir for storage process
          jayshaughnessy

          I'm not sure but I don't think RHQ actually has a place to define it such that it affects only storage.  I think you need to pass that directly to Cassandra (i.e. the storage node) by supplying the JVM_OPTS environment variable in rhq--server/rhq-storage/bin/cassandra[.bat].

          1 of 1 people found this helpful
          • 2. Re: Change java.io.tmpdir for storage process
            lzmuda

            Thanks for the reply. This path is correct, cause command  ps -ef | grep java.io.tmpdir returned storage process.

            Unfortunately it isn't working (permissions are set correctly - 777).

            However option "-XX:+PerfDisableSharedMem" is working. It turn off using shared memory for jvm and /tmp is not used.