Changeset f0206fc for general/prog


Ignore:
Timestamp:
08/17/2023 04:27:10 PM (11 months ago)
Author:
Douglas R. Reno <renodr@…>
Branches:
12.0, 12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
7e52a4a
Parents:
342d139a
Message:

OpenJDK Configuration: Disable the creation of
/tmp/hsperfdata_[username].

This feature generates performance monitoring and profiling information,
and isn't generally used on a BLFS system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/ojdk-conf.xml

    r342d139a rf0206fc  
    5151
    5252export JAVA_HOME
    53 unset AUTO_CLASSPATH_DIR dir jar
     53
     54# By default, Java creates several files in a directory named
     55# /tmp/hsperfdata_[username]. This directory contains files that are used for
     56# performance monitoring and profiling, but aren't normally needed on a BLFS
     57# system. This environment variable disables that feature.
     58_JAVA_OPTIONS="-XX:-UsePerfData"
     59
     60export _JAVA_OPTIONS
     61
     62unset AUTO_CLASSPATH_DIR dir jar _JAVA_OPTIONS
    5463
    5564# End /etc/profile.d/openjdk.sh</literal>
     
    6473<screen role="root"><userinput>cat &gt; /etc/sudoers.d/java &lt;&lt; "EOF"
    6574<literal>Defaults env_keep += JAVA_HOME
    66 Defaults env_keep += CLASSPATH</literal>
     75Defaults env_keep += CLASSPATH
     76Defaults env_keep += _JAVA_OPTIONS</literal>
    6777EOF</userinput></screen>
    6878
Note: See TracChangeset for help on using the changeset viewer.