The amount of RAM that I2P is limited to can be adjusted using debconf. The value in /etc/i2p/wrapper.config is stored in the debconf db and is written to /etc/default/i2p.