A canning problem where a random fill of an expensive ingredient depends on the process mean setting is considered in this study. To maximize the expected profit for a given process constant, a canner needs to find the best process mean setting and the upper limit on the fill. A computer program is developed that calculates the desired optimal values.