Start by looking at the application-context.xml. And remove beans that you don't need.
You can probably also safely removed some of the more obscure subsystems.
You can also De- tune alfresco by reducing the number of database connections, The size of the available memory, the size of the tread pools and the size of the caches.