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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *