IBM Support

Disable the Creation of Files Within /tmp/.com_ibm_tools_attach API

Troubleshooting


Problem

Some Java applications can create thousands of files within the /tmp/.com_ibm_tools_attach directory.

Cause

These directories are created for each JVM job to support attach handlers.

Resolving The Problem

You should do the following:

1) On the IBM i command line type STRQSH

2) In Qshell paste the following lines, pressing ENTER after each:

touch -C 1252 /qibm/userdata/java400/SystemDefault.properties

echo '#AllowOptions' >> /qibm/userdata/java400/SystemDefault.properties

echo 'com.ibm.tools.attach.enable=no' >> /qibm/userdata/java400/SystemDefault.properties

echo 'com.ibm.tools.attach.logging=no' >> /qibm/userdata/java400/SystemDefault.properties

3) F3 to exit Qshell



Note: All JVMs must be restarted for this to take effect. This will affect only new JVMs.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"Java","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.4;7.3;7.2;7.1;6.1;5.4.0","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
30 November 2020

UID

nas8N1019813