The ESP32-WROOM-02 board has a set ram size of 80kb, while this official page suggests that the ESP8266EX on which the current version of the ESP-WROOM-02 is based has 160kb ram.