Skip to content

Conversation

@stephen-carter-at-sf
Copy link
Contributor

No description provided.

import * as path from 'path';

const PMD7_CLI_CLASS = 'net.sourceforge.pmd.cli.PmdCli';
const HEAP_SIZE = '-Xmx1024m';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephen-carter-at-sf - Why are we not passing HEAP_SIZE anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the discussion in slack. But the idea basically is to get around this bug https://salesforce-internal.slack.com/archives/G02JGHG9NSE/p1718287697404169?thread_ts=1718287579.150129&cid=G02JGHG9NSE

If we do not supply the heap size, then the default is roughly a 1/4 of whatever your machines memory is. Most machines have more than 4g of memory and thus this would naturally get set to higher than 1g. If not, then users can control this themselves with the JDK_JAVA_OPTIONS environment variable. For example:

export JDK_JAVA_OPTIONS="-Xmx2g"

@stephen-carter-at-sf stephen-carter-at-sf merged commit a909430 into dev Jun 13, 2024
@stephen-carter-at-sf stephen-carter-at-sf deleted the d/W-15992482 branch June 13, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants