Abstract#
This post documents a complete TPROC-C benchmark run against Oracle 11.2.0.4 using HammerDB v6.1.1 on a virtualized stack built on C86 Hygon processors and the Sangfor virtualization platform. We walk through the environment setup, the painful troubleshooting phase (GUI crashes, ORA-12537 connection storms, listener queue exhaustion), explain how TPM/NOPM are calculated, and share the final result of 175,994 NOPM / 369,029 TPM under 128 virtual users.
1. Environment Overview#
1.1 Infrastructure#
| Layer | Specification |
|---|---|
| Compute Platform | Sangfor Virtualization (aSV) |
| CPU | C86 Hygon (海光) x86-compatible processor |
| vCPU (DB node) | 32 vCPU |
| Memory (DB node) | 128 GiB |
| Storage | 1 TB SSD (virtual disk via Sangfor storage pool) |
| OS (DB node) | Linux (Oracle 11.2.0.4 Enterprise Edition) |
| OS (Client node) | Windows Server (AMD64 VM) |
1.2 Benchmark Stack#
| Component | Version / Setting |
|---|---|
| HammerDB | v6.1.1 |
| Workload | TPROC-C (derived from TPC-C) |
| Warehouses | 100 |
| Virtual Users | 128 (final run) |
| Oracle Client | Instant Client 19c (replaced 11.2 client) |
| DB Service Name | orcl |
Note: The C86 Hygon platform is x86-64 compatible, so the standard Oracle 19c client and HammerDB binaries run without modification. The Sangfor virtualization layer adds a thin but non-zero overhead on I/O scheduling and interrupt delivery — worth keeping in mind when reading the ASH wait profile later.
2. Troubleshooting Journey#
2.1 GUI Crash with orageneric11.dll Access Violation#
Symptom: HammerDB silently disappeared with no UI error. Windows Event Viewer showed:
Faulting module: orageneric11.dll
Exception code: 0xc0000005 (Access Violation)Root cause: the legacy Oracle 11.2 client is unstable under heavy multi-threaded OCI calls on Windows.
Fix: switch to Oracle Instant Client 19c, prepend its path to PATH, install VC++ 2017 redistributable, and add defensive sqlnet.ora parameters:
SQLNET.AUTHENTICATION_SERVICES = (NTS)
DIAG_ADR_ENABLED=OFF
DIAG_SIGHANDLER_ENABLED=FALSE
DIAG_DDE_ENABLED=FALSE
SQLNET.EXPIRE_TIME = 10After the swap, the GUI crash disappeared completely.
2.2 ORA-12537 Connection Storm at 128 Vusers#
When scaling from 64 to 128 concurrent users, the logs filled with:
ORA-12537: TNS: connection closed
ORA-03113: end-of-file on communication channelv$resource_limit showed max_utilization of processes only reached ~101 — meaning the connections never actually established.
Three server-side fixes were required:
① Raise Oracle processes
alter system set processes=5000 scope=spfile;
shutdown immediate;
startup;② Expand listener backlog
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521))
(QUEUESIZE = 512)
)
)Remove the static SID_LIST_LISTENER block — keep only PMON dynamic registration.
③ Fix the hidden killer: net.core.somaxconn
# Before
net.core.somaxconn = 128
# After
sysctl -w net.core.somaxconn=4096
sysctl -w net.ipv4.tcp_max_syn_backlog=4096This single change resolved the connection storm. On a virtualized C86 node, the default kernel backlog is still 128 — easy to miss.
2.3 Client-side port exhaustion#
On the Windows hammer client:
netsh int ipv4 set dynamicport tcp start=10000 num=55000And in HammerDB Driver Script options:
- User Delay (ms) = 500
- Logon Delay (ms) = 500
This staggers connection creation and prevents the listener from being flooded instantly.
3. How TPM and NOPM Are Calculated#
Understanding these two metrics matters more than the raw number.
TPM — Transactions Per Minute#
- Counts database-level
user commits+user rollbacks. - Sampled from
v$sysstat(or ASH/AWR in higher editions):select sum(value) from v$sysstat where name in ('user commits', 'user rollbacks'); - Reflects engine work intensity, includes all transaction types.
NOPM — New Orders Per Minute#
- Counts only the
New-Ordertransaction (the core business transaction in TPC-C). - Read directly from the application schema, independent of engine internals.
- Equivalent to official TPC-C tpmC (renamed for trademark compliance).
Rule of thumb: TPM ≈ NOPM / 0.45.
During the Schema Build phase, TPM also shows up because bulk inserts generate commits — but that number only reflects load speed, not performance.
4. Run Procedure#
4.1 Schema Build#
Schema → Build, set Virtual Users = 1 (single-thread to avoid ORA-00001).- Wait for
TPCC SCHEMA COMPLETE. - Optionally run
Schema → Check.
Before rebuilding, clean leftovers:
drop user tpcc cascade;
drop tablespace TPCCTAB including contents and datafiles;4.2 Timed Run#
- Click Destroy to clear build workers.
Driver Script → Options:- Timed Driver Script: ✅
- Rampup: 5 min
- Duration: 15–20 min
- User Delay: 500 ms
Driver Script → LoadVirtual User → Options: 128 VUsersVirtual User → Create → Run
5. Final Result#
Job ID : 6AF2E0C6668B03E263433393
Timestamp: 2026-11-7 17:15:50
HammerDB: v6.1.1
Database: Oracle 11.2.0.4.0
Benchmark: TPROC-C
Virtual Users: 128
Warehouses: 100
--------------------------------
NOPM : 175,994
TPM : 369,029Resource Profile (observed on Sangfor virtualization console)#
| Metric | Value | Interpretation |
|---|---|---|
| CPU utilization | ~29% | Headroom available |
| Memory usage | ~68.5% (≈87 GiB) | SGA comfortable |
| Read I/O | ~9.5 MB/s | Normal |
| Write I/O | ~352 MB/s | TPC-C write-heavy pattern |
| ASH top waits | Commit, User I/O | Bottleneck is redo / flush, not CPU |
The C86 Hygon vCPU schedule handled 128 Oracle dedicated server processes smoothly; the limiting factor was storage write throughput rather than compute.
6. Reproduction Checklist#
Client#
- Oracle Instant Client 19c (not 11.2)
- VC++ 2017+ runtime installed
-
PATHpoints to new client first -
sqlnet.oradefensive params - Windows dynamic port range expanded
- User Delay = 500 ms
Server (Linux / Oracle on C86 + Sangfor)#
-
processes=5000+ restart -
listener.orawithQUEUESIZE=512, no static SID list -
net.core.somaxconn=4096(critical) -
ulimit -n≥ 65536,ulimit -u≥ 16384 - Sufficient Redo log size/groups
Benchmark flow#
- Single-thread build
- Destroy before run
- Reload driver script
- 5 min ramp-up, 15–20 min duration
- No ORA-12537 / ORA-03113 in logs
7. Takeaways#
- Legacy clients break modern benchmarks. The 19c Instant Client is the single highest-leverage fix.
somaxconn=128is a silent bottleneck. On virtualized C86 nodes, always raise it before high-concurrency tests.- CPU at 29% means the database is I/O-bound. Next optimization step: place Redo logs on the fastest tier (NVMe if available through Sangfor storage), increase redo size, and consider batched commit logging for test-only runs.
- NOPM is the comparable metric. TPM is useful for relative tuning; NOPM is what you quote across platforms.
Disclaimer#
This is a HammerDB result artifact. TPROC-C is derived from the TPC-C specification but is not audited by the TPC Council and is not an official TPC result. TPC-C, tpmC, and related marks are trademarks of the Transaction Processing Performance Council. See https://tpc.org.
HammerDB is open-source software under the GPL. NOPM, TPROC-C, and TPROC-H are HammerDB terminology.
---