java service - Threading

Is there any way to know the total number of Threads allocated and available from the java service?

I am writing a java service to execute the task Multi-threaded. But I want to invoke the services in the new thread only if the available is above 25%.

there is a way to know the total number of threads in use by JVM which includes the system threads also. But I only want to know the threads used by the IS services from the Server thread pool.

did anyone come across the similar threading modal ?