Oops, Mark you're right. Now I'm not worried anymore about the impact on the server's memory usage. And thanks Claude for the explanation.
But nevertheless, there must be a difference between Sybase 15.5 and 15.7 regarding the heap memory pool as the same transaction runs fine in 15.5.
Is there a possibility to see what the heap is used for ?
@Jason:
The following shows an example of a transaction that fails. Nothing special form my point of view.
UPDATE part SET vendor = 'JE UIA' WHERE part.partno = 'H3310'
INSERT INTO od_rec_detail (amountc, mfg_date, condition, status, cert_type, vendor, discount, rate, qty, partnoold, serialnoold, overhaul_company, recno, partno, releaseno, batchno, owner, del_date, expire_date, customsno, detailno_i, purch_pricec, orderno, mat_class, currency, labelno, recdetailno_i, expirydate_unknown, serialno, receivingno, purch_price, psn, amount, overhaul_date) VALUES (...)
INSERT INTO store (partno, locationno_i, recdetailno_i, batchno, expire_date, qty, pma, owner, projectno_i) VALUES (...)
INSERT INTO history (orderdate, fixed_asset, available_system_qty, tbi, station, condition, status, repairable, ac_typ, label_start, fa_relevant, qty, store_loc, cbi, available_station_qty, voucherno, average_price, event_perfno_i, certificate_date, partno, receiver, leg_no, batchno, historyno_i, releaseno, ata_chapter, owner, del_date, location, fa_qty, tah, vm, purch_pricec, orderno, tool, tac, mat_class, od_detailno_i, labelno, recdetailno_i, costcenter, certificate_company, store, purch_price, special_contract, pma) VALUES (...)
DELETE FROM history_text WHERE history_text.historyno_i = 620060
UPDATE od_header SET ext_state = 'R', state = 'C', mutator = 'UKONI', mutation = 15305 WHERE od_header.orderno_i = 53165
UPDATE od_detail SET ext_state = 'R', state = 'C', mutator = 'UKONI', backorder = 0.0, mutation = 15305 WHERE od_detail.detailno_i = 73387
INSERT INTO od_detail_history (amountc, pickslipseqno_i, status, condition, taxable, direct_consumption, discount, requested_partno, partno, org_detail_mutation_time, org_detail_mutator, reason, quotationno_i, awb_date, projectno, budgetno, purch_pricec, req_checked, orderno_i, org_detail_created_date, labelno, costcenter, req_condition, package_code, serialno, confirmed_date, purch_price, poolno_i, amount, free_of_charge, orig_target_date, org_detail_mutation, vendor, backorder, rate, ac_registr, qty, target_time, org_detail_created_by, reminder_date, pickslipno, entry_date, specification, entry_sign, order_type, target_date, historyno_i, del_date, posno, ext_state, detailno_i, reminder_count, state, currency, cost_type, measure_unit, awbno, req_work, priority) VALUES (...)
INSERT INTO od_detail_flow_event (detail_flow_event_i, event_date, event_type_index, detailno_i, event_time, source_type, source_key, applicable) VALUES (...)
INSERT INTO od_header_history (orderdate, release_sign, address_issue, old_orderno, flight_date, status, address_bill, created_from_orderno_i, deliverycond, print_count, closing_date, order_prefix, responsible, flightno, pool_participant, shipped_by, weight, awb_date, pool_reason, shipment, master_sign, print_count_om, orderno, org_order_mutator, ready_for_shipment, num_of_packages, orderno_i, goods_destination, costcenter, ext_orderno, internal_repair, packingno, org_order_mutation_time, vendor, requested_by, ship_remarks, entry_date, paymentcond, customer_repair, entry_sign, order_type, historyno_i, ext_state, org_order_created_by, address_via, state, address_ship, packed_by, currency, org_order_created_date, awbno, on_hold, pool_requestno, priority, pool_ac_typ, order_type_for, org_order_mutation) VALUES (...)
UPDATE od_rec_quarantine SET status = 9 WHERE od_rec_quarantine.detailno_i = 73387
UPDATE od_header SET closing_date = 15305, state = 'C' WHERE od_header.orderno_i = 53165
INSERT INTO od_detail_flow_event (detail_flow_event_i, event_date, requested_qty, event_type_index, detailno_i, source_type, event_qty, source_key, applicable) VALUES (...)
INSERT INTO od_detail_flow_event (detail_flow_event_i, event_date, requested_qty, event_type_index, detailno_i, event_time, source_type, event_qty, source_key, applicable) VALUES (...)
-> rollback java.sql.SQLException: There is insufficient heap memory to allocate 65520 bytes. Please increase configuration parameter 'heap memory per user' or try again when there is less activity on the system.