Hi Abdul, Was your CF7 32 bit and CF10 is 64 bit? If so perhaps add some more RAM capacity to CF Java heap.
Change CF10admin > Server Settings > Java and JVM > Maximum JVM Heap Size (in MB) 512 to 2048 or more pending how much RAM the operating system has. CF application requires a restart to apply change.
HTH, Carl.