@@ -226,3 +226,50 @@ NIO-based front layer that binds local IPs 127.0.0.1 through 127.0.0.17 and brid
226226- ` source/strernary/NioMasqueradeEngine.java ` — NIO Selector engine with local IP bindings
227227- ` source/strernary/NioModuleScanner.java ` — Startup module discovery and registration
228228- ` source/strernary/StrernaryDirectoryServer.java ` — Port 2000 menu + XML forwarding
229+
230+ ---
231+
232+ ## Memory Footprint (Rough Estimates)
233+
234+ Approximate heap/RSS at steady state on Linux x86_64, Java 21 with virtual threads.
235+
236+ ** Core:**
237+
238+ | Component | Estimated Memory | Notes |
239+ | -----------| -----------------| -------|
240+ | NitroWebExpress™ (main server) | ~ 60 MB | Base JVM + NIO selector + config |
241+ | NIO Masquerade Layer | ~ 20 MB | Selector engine, 18 local IP bindings |
242+ | MySQL JDBC pool | ~ 15 MB | Connection pool (idle) |
243+ | Print system + CommonRails | ~ 5 MB | Formatting, color, XML config |
244+
245+ ** Modules (per-module, when active):**
246+
247+ | Module | Estimated Memory | Notes |
248+ | --------| -----------------| -------|
249+ | DJL Inference (Strernary™) | ~ 350 MB | DistilBERT model weights (~ 250 MB) + PyTorch native |
250+ | Strernary™ Server (port 20000) | ~ 25 MB | TCP socket handler + knowledge DB cache |
251+ | Strernary™ Directory (port 2000) | ~ 10 MB | Menu, XML forwarding, registered server lists |
252+ | International Signal Servers (each) | ~ 30 MB | Per-country: Japan, Russia, Mexico, Greece, Ukraine, Britain |
253+ | CityAnalysis™ | ~ 40 MB | Speculation engine + trainer + recursive output buffers |
254+ | AIProctorModule™ (port 49111) | ~ 20 MB | Session state + NationalID verification |
255+ | AIIntegrativeEngine + Training | ~ 80 MB | Shared model + scouting buffer (up to 200 MB during training) |
256+ | HeuristicClassifier™ | ~ 15 MB | Rate tables, geo-concentration maps, findings |
257+ | BitcoinCompliant (port 6682) | ~ 25 MB | Wallet indexer + trade session state |
258+ | AES/DSA/RSA Encryption | ~ 10 MB | Key material + pass buffers |
259+ | NationalFinanceID (port 49152) | ~ 20 MB | Keypair generator + profile cache |
260+ | Communicator (port 49199) | ~ 15 MB | Chat history + message queues |
261+ | Weather/Calendar/ASCII | ~ 10 MB | Lightweight socket handlers |
262+
263+ ** Totals (approximate):**
264+
265+ | Profile | Estimated RSS | Description |
266+ | ---------| ---------------| -------------|
267+ | Minimal (core only) | ~ 100 MB | NitroWebExpress + NIO + MySQL |
268+ | Standard (no DJL) | ~ 400 MB | Core + all modules, DJL disabled |
269+ | Full (DJL loaded) | ~ 750 MB | All modules + PyTorch model loaded |
270+ | Training burst | ~ 950 MB | Full + AITrainingThread scouting buffer at capacity |
271+
272+ ** Recommended JVM flags:**
273+ ```
274+ -Xms256m -Xmx1024m -XX:+UseZGC
275+ ```
0 commit comments