Skip to content

Comment out lo4j2 script example in order to save resources in pulsar-admin - #9309

Merged
codelipenghui merged 1 commit into
apache:masterfrom
eolivelli:fix/small-pulsar-admin-enhancements
Jan 27, 2021
Merged

codelipenghui merged 1 commit into
apache:masterfrom
eolivelli:fix/small-pulsar-admin-enhancements

Conversation

@eolivelli

Copy link
Copy Markdown
Contributor

Our default configuration file for log4j includes and example about how to use Javascript based filters.

Enabling that lo4j feature forces log4j runtime to perform Nashorn JS engine initialisation, this basically slows down pulsar-admin startup.

When you run on JDK11+ you also see a warning "Warning: Nashorn engine is planned to be removed from a future JDK release" that is very annoying for users.

This change is part of a little series of patches about improving pulsar-admin startup speed

@eolivelli eolivelli changed the title Comment lo4j2 script in order to save resources in pulsar-admin Comment out lo4j2 script example in order to save resources in pulsar-admin Jan 25, 2021
@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Jan 25, 2021
@merlimat merlimat added this to the 2.8.0 milestone Jan 25, 2021
@eolivelli

Copy link
Copy Markdown
Contributor Author

/pulsar-bot run-failure-tests

@eolivelli

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui
codelipenghui merged commit 2dc2470 into apache:master Jan 27, 2021
merlimat pushed a commit to merlimat/pulsar that referenced this pull request Apr 6, 2021
…he#9309)

Our default configuration file for log4j includes and example about how to use Javascript based filters.

Enabling that lo4j feature forces log4j runtime to perform Nashorn JS engine initialisation, this basically slows down pulsar-admin startup.

When you run on JDK11+ you also see a warning "Warning: Nashorn engine is planned to be removed from a future JDK release" that is very annoying for users. 

This change is part of a little series of patches about improving pulsar-admin startup speed
eolivelli added a commit to datastax/pulsar that referenced this pull request May 18, 2021
…he#9309)

Our default configuration file for log4j includes and example about how to use Javascript based filters.

Enabling that lo4j feature forces log4j runtime to perform Nashorn JS engine initialisation, this basically slows down pulsar-admin startup.

When you run on JDK11+ you also see a warning "Warning: Nashorn engine is planned to be removed from a future JDK release" that is very annoying for users.

This change is part of a little series of patches about improving pulsar-admin startup speed

(cherry picked from commit 2dc2470)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants