Categories
Ebooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Computer in the office
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Multimedia trainings
- Real estate
- Persuasion and NLP
- Taxes
- Social policy
- Guides
- Presentations
- Leadership
- Public Relation
- Reports, analyses
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
E-press
- Architektura i wnętrza
- Biznes i Ekonomia
- Home and garden
- E-business
- Finances
- Personal finance
- Business
- Photography
- Computer science
- HR & Payroll
- Computers, Excel
- Accounts
- Culture and literature
- Scientific and academic
- Environmental protection
- Opinion-forming
- Education
- Taxes
- Travelling
- Psychology
- Religion
- Agriculture
- Book and press market
- Transport and Spedition
- Healthand beauty
-
History
-
Computer science
- Office applications
- Data bases
- Bioinformatics
- IT business
- CAD/CAM
- Digital Lifestyle
- DTP
- Electronics
- Digital photography
- Computer graphics
- Games
- Hacking
- Hardware
- IT w ekonomii
- Scientific software package
- School textbooks
- Computer basics
- Programming
- Mobile programming
- Internet servers
- Computer networks
- Start-up
- Operational systems
- Artificial intelligence
- Technology for children
- Webmastering
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Narrative poetry
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
School textbooks
-
Popular science and academic
- Archeology
- Bibliotekoznawstwo
- Cinema studies
- Philology
- Polish philology
- Philosophy
- Finanse i bankowość
- Geography
- Economy
- Trade. World economy
- History and archeology
- History of art and architecture
- Cultural studies
- Linguistics
- Literary studies
- Logistics
- Maths
- Medicine
- Humanities
- Pedagogy
- Educational aids
- Popular science
- Other
- Psychology
- Sociology
- Theatre studies
- Theology
- Economic theories and teachings
- Transport i spedycja
- Physical education
- Zarządzanie i marketing
-
Guides
-
Game guides
-
Professional and specialist guides
-
Law
- Health and Safety
- History
- Road Code. Driving license
- Law studies
- Healthcare
- General. Compendium of knowledge
- Academic textbooks
- Other
- Construction and local law
- Civil law
- Financial law
- Economic law
- Economic and trade law
- Criminal law
- Criminal law. Criminal offenses. Criminology
- International law
- International law
- Health care law
- Educational law
- Tax law
- Labor and social security law
- Public, constitutional and administrative law
- Family and Guardianship Code
- agricultural law
- Social law, labour law
- European Union law
- Industry
- Agricultural and environmental
- Dictionaries and encyclopedia
- Public procurement
- Management
-
Tourist guides and travel
- Africa
- Albums
- Southern America
- North and Central America
- Australia, New Zealand, Oceania
- Austria
- Asia
- Balkans
- Middle East
- Bulgary
- China
- Croatia
- The Czech Republic
- Denmark
- Egipt
- Estonia
- Europe
- France
- Mountains
- Greece
- Spain
- Holand
- Iceland
- Lithuania
- Latvia
- Mapy, Plany miast, Atlasy
- Mini travel guides
- Germany
- Norway
- Active travelling
- Poland
- Portugal
- Other
- Russia
- Romania
- Slovakia
- Slovenia
- Switzerland
- Sweden
- World
- Turkey
- Ukraine
- Hungary
- Great Britain
- Italy
-
Psychology
- Philosophy of life
- Kompetencje psychospołeczne
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Audiobooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Real estate
- Persuasion and NLP
- Taxes
- Guides
- Presentations
- Leadership
- Public Relation
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
History
-
Computer science
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
Popular science and academic
-
Guides
-
Professional and specialist guides
-
Law
-
Tourist guides and travel
-
Psychology
- Philosophy of life
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Videocourses
-
Data bases
-
Big Data
-
Biznes, ekonomia i marketing
-
Cybersecurity
-
Data Science
-
DevOps
-
For children
-
Electronics
-
Graphics/Video/CAX
-
Games
-
Microsoft Office
-
Development tools
-
Programming
-
Personal growth
-
Computer networks
-
Operational systems
-
Software testing
-
Mobile devices
-
UX/UI
-
Web development
-
Management
Podcasts
E-book details
Log in, If you're interested in the contents of the item.
JBoss AS 5 Performance Tuning. Build faster, more efficient enterprise Java applications
Francesco Marchioni, Jason Savod
Ebook
Today's organizations need to deliver faster services to a large set of people and businesses. In order to survive this challenge, enterprises need to optimize the performance of their application server along with its components and hardware. Writing faster applications is no longer just an option for your products; it's an imperative requirement, which you cannot ignore.
JBoss AS 5 Performance Tuning will teach you how to deliver fast applications on the JBoss Application Server and Apache Tomcat, giving you a decisive competitive advantage over your competitors. You will learn how to optimize the hardware resources, meeting your application requirements with less expenditure.The performance of Java Enterprise applications is the sum of a set of components including the Java Virtual Machine configuration, the application server configuration (in our case, JBoss AS), the application code itself and ultimately the operating system. This book will show you how to apply the correct tuning methodology and use the tuning tools that will help you to monitor and address any performance issues.
By looking more closely at the Java Virtual Machine, you will get a deeper understanding of what the available options are for your applications and how their performance will be affected. You will learn about thread pool tuning, EJB tuning, JMS tuning, Enterprise Java Beans, and the Java Messaging Service.
The persistence layer and JBoss Clustering service each have a chapter dedicated to them as they are two of the most crucial elements to configure correctly in order to run a fast application.
You will also learn how to tune your web server, enabling you to configure and develop web applications that get the most out of the embedded Tomcat web server.
JBoss AS 5 Performance Tuning will teach you how to deliver fast applications on the JBoss Application Server and Apache Tomcat, giving you a decisive competitive advantage over your competitors. You will learn how to optimize the hardware resources, meeting your application requirements with less expenditure.The performance of Java Enterprise applications is the sum of a set of components including the Java Virtual Machine configuration, the application server configuration (in our case, JBoss AS), the application code itself and ultimately the operating system. This book will show you how to apply the correct tuning methodology and use the tuning tools that will help you to monitor and address any performance issues.
By looking more closely at the Java Virtual Machine, you will get a deeper understanding of what the available options are for your applications and how their performance will be affected. You will learn about thread pool tuning, EJB tuning, JMS tuning, Enterprise Java Beans, and the Java Messaging Service.
The persistence layer and JBoss Clustering service each have a chapter dedicated to them as they are two of the most crucial elements to configure correctly in order to run a fast application.
You will also learn how to tune your web server, enabling you to configure and develop web applications that get the most out of the embedded Tomcat web server.
- JBoss AS 5 Performance Tuning
- Table of Contents
- JBoss AS 5 Performance Tuning
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers and more
- Why Subscribe?
- Free Access for Packt account holders
- Support files, eBooks, discount offers and more
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Errata
- Piracy
- Questions
- 1. Performance Tuning Concepts
- Preface
- What you will get from this book?
- What is performance?
- Scalability: the other side of performance
- The tuning process
- Tuning in the software development cycle
- Building the performance test
- Establish a baseline
- Collect data
- How long should data collection last?
- Analyze data
- Configure and test again
- Tuning Java Enterprise applications
- Areas of tuning
- Summary
- 2. Installing the Tools for Tuning
- Welcome to scientific tuning
- The rationale behind the choice of the tools
- Profiling the Java Virtual Machine
- Installing the JVM
- Installing VisualVM
- Connecting to a local server
- Connecting to a remote server
- Monitoring your server
- The Monitor tab
- The Threads tab
- The Profiler tab
- Collecting snapshots
- Extending VisualVM
- Profiling your applications with Eclipse Test and Performance Tools Platform (TPTP) Project
- Installing the TPTP suite
- Updating Eclipse
- How to profile an application
- Going beyond the basics of TPTP
- Installing the TPTP suite
- Load testing your application with JMeter
- Building a Test Plan
- Step 1: Create a Thread Group
- Step 2: Create a Sampler
- Step 3: Create a Listener
- Making your test plan a bit more realistic
- How to create a complex Test Plan
- Running JMeter as a shell
- Building a Test Plan
- Operating system tools and commands
- Windows users
- Unix users
- Dealing with low CPU utilization
- Dealing with high CPU utilization
- Dealing with high resource contention
- Dealing with high disk utilization
- Summary
- Welcome to scientific tuning
- 3. Tuning the Java Virtual Machine
- The starting point
- Choosing the JVM settings
- Setting the correct heap size
- The correct amount of memory to grant your application
- Step # 1: Finding the maximum heap (-Xmx)
- Step # 2: Finding the initial heap size (-Xms)
- I cannot allocate enough memory for the JVM!
- Where do I configure JVM settings in JBoss AS?
- The correct amount of memory to grant your application
- Sizing the garbage collector generations
- Setting the correct heap size
- Which is the correct ratio between the young and old generations?
- The garbage collector algorithms
- Choosing the right garbage collector for your application
- The G1 garbage collector
- Debugging garbage collection
- Making good use of the memory
- Avoid creating large Java objects
- Handling Out of Memory' errors
- Finding the memory leak in your code
- A practical example
- Application description
- Setting up a test bed
- Benchmark aftermath
- Consideration #1
- Consideration #2
- Action
- Further optimization
- Benchmark aftermath
- Summary
- 4. Tuning the JBoss AS
- From release 4.x to 5.x, and on
- Comparing server releases
- Creating a custom application server configuration
- JBoss AS pools
- The System thread pool
- Finding out if the System thread pool is a bottleneck
- JDBC connection pool
- Calculating the optimal min-pool-size and max-pool-size
- Using Prepared Statements efficiently
- Two things to be aware of:
- Detecting connection leaks
- Should you reuse connections or acquire new ones from the pool?
- The System thread pool
- Logging for performance
- Choosing the best logging strategy
- Which is the fastest appender?
- Should I use the AsyncAppender to improve my log throughput?
- Which layout should I choose for my logs?
- Is it enough to increase the log threshold to get rid of log charge?
- How does logging hierarchy influence performance?
- Choosing the best logging strategy
- Summary
- From release 4.x to 5.x, and on
- 5. Tuning the Middleware Services
- Introduction to Enterprise Java Beans
- Session Beans
- How to configure the optimal size for stateless pool?
- How to configure the optimal size of stateful cache?
- Comparing SLSBs and SFSBs performance
- When things get wilder
- Is it possible that Stateful Beans are faster then Stateless Beans?
- Session Beans and Transactions
- Customizing JBoss EJB container policies
- Customizing the single deployment unit
- Session Beans
- Introduction to the Java Messaging system
- Entering the JBoss Messaging system
- Tuning JBoss JMS provider
- Tuning JBoss Messaging (JBoss AS 5.x)
- How do you tune the JBoss Messaging Connection factory?
- How do you tune JBoss Messaging destinations?
- Tuning HornetQ (JBoss AS 6.x)
- How to configure HornetQ journal for optimal performance?
- How do you configure HornetQ transport for optimal performance?
- Basic JMS tuning
- Tuning JBoss Messaging (JBoss AS 5.x)
- An example use case with HornetQ
- Summary
- Introduction to Enterprise Java Beans
- 6. Tuning the Persistence Layer
- Designing a good database
- Reducing the space needed by your database
- Partitioning the database
- Using indexes
- Tuning JDBC
- Using a Connection Pool
- Setting the proper fetch size
- Use batch updates for bulk insert/updates
- Use Prepared Statements instead of Statements
- Tuning JDBC networking
- Tuning Hibernate and JPA
- Optimizing object retrieval
- Limiting the amount of data fetched with pages
- Fetching parent and child items with a single query
- Combining join fetches and paging
- Speeding up your Hibernate queries with batches
- Using named queries to speed up your queries
- Improving the performance of bulk SQL statements
- Optimizing object retrieval
- Evaluating using caches to speed up your queries
- Hibernate caches
- The first-level cache
- The second-level cache
- Configuring the second-level cache on JBoss AS
- The query cache
- Entity cache versus query cache
- Optimizing data synchronization
- A sample use case
- Summary
- Designing a good database
- 7. JBoss AS Cluster Tuning
- Introduction to JBoss clustering
- Configuring JGroups transport
- How to optimize the UDP transport configuration
- How to optimize the JGroups' Protocol stack
- Tuning JBoss Cache
- Understanding JBoss Cache configuration
- Configuring cacheMode
- Configuring cache concurrency
- Configuring the isolationLevel
- Understanding JBoss Cache configuration
- Tuning session replication
- Override SFSB's isModified method
- Use buddy replication
- Advanced buddy replication
- Buddy replication and session affinity
- Configure replication granularity and replication trigger
- How to configure the replication-trigger
- How to configure the replication-granularity
- Tuning cache storage
- Where does cache data get stored?
- Summary
- 8. Tomcat Web Server Tuning
- JBoss Web server basics
- Configuring Connectors for optimal performance
- How do you calculate the threads for your application?
- A concrete example
- The long life of Web threads
- Is there a maximum amount of connections the Web server can handle?
- How do you calculate the threads for your application?
- Using Apache Portable Runtime
- Integrating JBoss Web server with Apache Web server
- Load testing Apache-JBoss connectivity
- mod_cluster to the rescue?
- Last tips before rolling JBoss Web server in production
- Configuring Connectors for optimal performance
- Summary
- JBoss Web server basics
- 9. Tuning Web Applications on JBoss AS
- Choosing a framework for your web applications
- Comparing framework performance
- The performance of tabular data
- The performance of rich tree
- Increasing the performance of JSF and RichFaces
- Configuring JSF state saving efficiently
- Using Ajax to speed up your JSF applications
- Speeding up CSS and JavaScript file loading
- Comparing framework performance
- Tuning web services
- Performance of web services
- Elements influencing the performance of web services
- Reducing the size of SOAP messages
- Faster JBossWS provider
- The wisdom behind these benchmarks
- Performance of web services
- Summary
- Choosing a framework for your web applications
- A. A Tuned Mind
- Index
- Title: JBoss AS 5 Performance Tuning. Build faster, more efficient enterprise Java applications
- Author: Francesco Marchioni, Jason Savod
- Original title: JBoss AS 5 Performance Tuning. Build faster, more efficient enterprise Java applications
- ISBN: 9781849514033, 9781849514033
- Date of issue: 2010-12-03
- Format: Ebook
- Item ID: e_3aty
- Publisher: Packt Publishing