The Engine is stateless which means that everything that is necessary for execution is persisted by default. This includes historical data (archive) because of audit and provided APIs. Some tables get bigger depending on the Engine activity and the amount of data you store as part of process variables. The second reason should not occur if you follow the best practices: use process variables only when necessary and with a light type.
In the Enterprise Edition it is possible to configure archiving, you can check this documentation page here .
Most of the time, the solution used is to regularly purge the data that is not useful anymore using APIs (remove unused process definitions, archived cases, data, others).
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.