virtual memory exhausted: Cannot allocate memory

Since your compilation fails with out of memory, there’s probably not enough memory to compile your program. This can’t possibly be because of ‘a session management problem’ as suggested in the accepted answer. Is mysql eating more than it should? Is 300MB enough to compile C++ anyway?

Serving JSon (like for a REST interface) in Wt is done through a WResource bound to the WServer object. WApplication is for an interactive user interface.

Leave a Comment