1. An apparatus comprising: at least one processor; a memory coupled to the at least one processor; a plurality of logical partitions defined on the apparatus; a dynamic partition manager residing in the memory and executed by the at least one processor, the dynamic partition manager determining an allocation of hardware resources among the plurality of logical partitions and having an ability to dynamically change the allocation of hardware resources while the logical partitions are running; and a computer program executing in one of the plurality of logical partitions, the computer program receiving a message from the dynamic partition manager in response to the dynamic partition manager determining that a dynamic change to the allocation of hardware resources is needed in the one logical partition, wherein the computer program is an application server that includes a configuration setting for threadpool size, a configuration setting for heap size, a configuration setting for size of at least one buffer, and a configuration setting for cache size, wherein the application server increases threadpool size and increases heap size when the dynamic change to the allocation of hardware resources increases a number of processors in the one logical partition and increases heap size and increases cache size when the dynamic change to the allocation of hardware resources increases memory size in the one logical partition.