Someone asked me about pairing neon gobies. He bought 5 and they are shredding each others' fins in a 55 gallon QT tank.
My first thought was that the fish are all males, and he should buy more and try again. Then I read some stuff about pairing them, and it seems that when there are just a few, they try each other out until there is only a pair left. Indeed recently with my Elacatinus evelynae, they were all so aggressive, I despaired of getting a pair. Once I split them up, however, I found first one pair, and then another.
Also, I think in the case of such small fish, a smaller QT might be in order. Just my opinion. I currently have about 11 in a 15 gallon tank with 5 clarkii clownfish, and about 60 in another 15 gallon tank, where they grew up from babies. Anyone want to buy some? Thus crowded, they all get along well.
Here's the hypothesis: with just a few gobies in a large tank, the urge to mate is high, but they have to find, from the remaining fish, a suitable mate. Fighting is the way to find one, and protect it from the others who also want to mate. They are trying to rid themselves of the competition.
In a smaller tank with lots of gobies, mating is impossible, and growth and survival is the top goal.
I really don't know, but I get the feeling that these fish are not hermaphrodites. I think they have a sexuality determined at birth. I can tell males from females only by behavior in relation to their mates. Before they have a mate, it it impossible.
I hope this helps, but I am interested in what the rest of you have to say about this matter. Please chime in.