Recently, web service is growing more and more popular. Java is a representative language to implement web based services. But its platform independency slows its running speed. Partial evaluation can be used to improve Java bytecode efficiency. In this paper, we present a distributed Java bytecode partial evaluation architecture to accelerate Java based web service running speed by optimizing service according to certain context or, if possible, localizing remote service. Our distributed partial evaluator is based on SOAP message passing. Finally our experiment result of a RMI service shows that the partial evaluator can optimize Java based web services as we have expected.