As you learned the hard way BJJ can be hell on your knees. One tip I can pass along to you (which I didn't know until my third knee surgery) is that while building up your quads is important... you've also got to blast your hams.
Please tell me you don't do leg locks in BJJ? Fortunately, they're illegal in Kodokan Judo.