In a resource-constrained environment, what servlet coding practice would you recommend to optimize memory usage?
- Disabling compression
- Increasing session timeout
- Reducing unnecessary object creation
- Using synchronous servlets
Reducing unnecessary object creation is a good practice to optimize memory usage in a resource-constrained environment, as it helps minimize the overhead associated with object allocation.
Loading...
Related Quiz
- How do distributed transactions differ from local transactions?
- _________ in JDBC helps in reusing the same connection for multiple database operations.
- Load balancing is critical in a _________ architecture to distribute traffic evenly across servers.
- A web application experiences intermittent database connection issues. What connection pooling feature should be evaluated to resolve this?
- What is a 'Content Delivery Network (CDN)' and how does it relate to caching?