Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying WildFly Performance Tuning
  • Table Of Contents Toc
WildFly Performance Tuning

WildFly Performance Tuning - Third Edition

3.8 (6)
close
close
WildFly Performance Tuning

WildFly Performance Tuning

3.8 (6)

Overview of this book

Packed with practical examples, this book looks at a different aspect of performance tuning in each chapter and shows you how to apply them to their existing Java applications. Anyone with an interest in learning more and improving the performance of Java-based technology in general, all the way to WildFly in particular, will find this book useful.
Table of Contents (12 chapters)
close
close
8
8. Tuning Web Applications and Services
11
Index

Large objects


When designing and implementing an application, it is worth remembering to avoid allocating very large objects that are kept alive for a long time. The problems with these objects are that they have the potential to severely fragment the heap. Despite good GC strategies and improved defragmentation techniques, consequences can, in the end, be catastrophic for JVM, often in the shape of a java.lang.OutOfMemoryError error.

Large objects that have a short lifespan will be collected relatively fast and won't cause many problems. If these large objects are also allocated at the same time, they can be stored as continuous memory space, fragmentation can be kept to a minimum. They are also likely to be collected at the same time.

Another good solution is to chop the large objects up in to smaller ones, as this will make their long lifespan less cumbersome for the memory handling of JVM. Should none of these techniques be an option, the solution of enabling large memory pages might do...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
WildFly Performance Tuning
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon