CERN-LHC. Measurements of the cross sections for J/PSI and UPSILON meson production via their dimuon decay modes in proton-proton collisions at a centre-of-mass energy of 8 TeV. The data used, taken in April 2012 has an integrated luminosity of 51 pb-1 for the UPSILON analysis and 18 pb-1 for the J/PSI analysis. The data cover the rapidity range 2.0-4.5 and transverse momentum range 0-14(15) GeV/c for the J/PSI(UPSILON) production. Where applicable in the tables the first (sys) error is the uncorrelated systematic error and the second is the correlated systematic error.