We study a single-stage production system that produces one product type. The system employs a base stock policy to maintain an inventory of finished items and cope with random demand. During stockout periods, the system incurs three types of potential customer loss: (a) balking, i.e., arriving customers may be unwilling to place orders and leave immediately; (b) rejection, i.e., the system rejects new customer orders if its backlog has reached a certain limit, called the base backlog; (c) reneging, i.e., outstanding customers waiting in queue may become impatient and withdraw their orders. The objective is to determine the base stock and base backlog that maximize the mean profit rate of the system. This quantity is estimated analytically using a finite capacity M/M/1 queueing model, in which the arrival rate is a decreasing but otherwise arbitrary function of the backlog and customer reneging times have an arbitrary but known distribution. Certain properties are established which ensure that the optimal control parameters can be determined in finite time by exhaustive search. The model is then extended to take into account a fixed order quantity policy for replenishing raw material. Numerical results show that managing inventories and backlog jointly achieves higher profit than other control policies.