glassfish.exe

GlassFish Server (Open Source Java EE Platform)

Application ProcessStableJava EE Server
CPU Usage
1-20%
Memory
100-800 MB
Location
C:\GlassFish
Publisher
Eclipse Foundation

Quick Answer

glassfish.exe is legitimate. It starts the GlassFish domain JVM to host Java EE applications and admin interfaces when the server is running.

Is it a Virus?
✔ NO - Safe
Should originate from an official GlassFish distribution at a path like C:\GlassFish\bin\glassfish.exe
Warning
Typically a single JVM per domain
If you see unexpected multiple glassfish.exe instances, verify domain setup and startup scripts; look for multiple domains or misconfigured services
Can I Disable?
YES
Stop the GlassFish domain via asadmin stop-domain or stop service, then disable the Windows service or startup script

What is glassfish.exe?

glassfish.exe is the Windows executable that starts the GlassFish Server domain. It launches the JVM, binds to ports, deploys Java EE applications, and exposes admin interfaces. This process runs as part of a GlassFish domain instance and typically is started via asadmin, a Windows service, or a startup script.

GlassFish runs as a domain-based Java EE server; glassfish.exe starts the JVM for a given domain, loading configuration, web apps, and services, and coordinating lifecycle, deployment, and remote management via the admin console.

Quick Fact: GlassFish uses domain-based architecture; a single domain can host multiple apps, while separate domains isolate configurations and deployments.

Types of GlassFish Processes

Is glassfish.exe Safe?

Yes, glassfish.exe is safe when it comes from an official GlassFish distribution and is signed by the appropriate project sponsor (Eclipse Foundation or Oracle).

Is glassfish.exe a Virus or Malware?

The real glassfish.exe is NOT a virus. Malware can masquerade with similar names; always verify sources.

How to Tell if glassfish.exe is Legitimate or Malware

  1. File Location: Ensure glassfish.exe is at C:\GlassFish\bin\glassfish.exe (adjust for your install).
  2. Digital Signature: Right-click glassfish.exe in Explorer or Task Manager -> Properties -> Digital Signatures. Should show the project signer (Eclipse Foundation or Oracle).
  3. Resource Usage: Normal usage shows CPU on demand during deployment; idle CPU is low. Memory usage varies with domain size.
  4. Behavior: GlassFish should run under a valid domain startup. Unsolicited background start or silent auto-launch without a service is suspicious.

Red Flags: If glassfish.exe is located outside the GlassFish install directory, lacks a valid digital signature, or starts without a domain, scan for malware and verify the installation source.

Why Is glassfish.exe Running on My PC?

glassfish.exe runs to host and serve Java EE applications within a GlassFish domain, and can also be started as a Windows service or via asadmin. It may persist while the domain serves apps.

Reasons it's running:

Can I Disable or Remove glassfish.exe?

Yes, you can disable glassfish.exe. It's safe to stop the domain when not in use, and you can remove GlassFish by deleting the installation or uninstalling via the OS package manager if installed as a service.

How to Stop glassfish.exe

How to Uninstall GlassFish

Common Problems: GlassFish Performance and Deployments

If glassfish.exe shows issues, review domain logs and configuration. The following are common problems and practical fixes.

Common Causes & Solutions

Quick Fixes:
1. Review logs in domains/domain1/logs/server.log
2. Restart domain after config changes
3. Increase heap with -Xmx in JAVA_OPTS
4. Disable unused deployments via Admin Console
5. Update GlassFish to the latest patch level

Frequently Asked Questions

Is glassfish.exe a virus?

No, glassfish.exe is legitimate when it comes from an official GlassFish distribution and is located under the GlassFish installation directory (e.g., C:\GlassFish\bin\glassfish.exe).

Why is glassfish.exe using a lot of CPU?

CPU usage usually rises during deployment, runtime application processing, or heavy admin tasks. Check the Admin Console, review deployed apps, and monitor via server.log for hotspots.

Can I delete glassfish.exe?

Yes, uninstall GlassFish by removing the installation directory or via OS package management, but ensure you back up domains and config first.

Can I disable glassfish.exe from starting automatically?

Yes, disable the Windows service or remove startup scripts. You can also disable auto-start in the Services control panel.

How do I check GlassFish logs?

Logs are in C:\GlassFish\domains\domain1\logs (server.log and domain logs). Use tail -f or a log viewer to monitor events.

How do I deploy apps to GlassFish?

Use the Admin Console or asadmin deploy commands to deploy WAR/EAR files. Ensure resources (datasources, JDBC pools) are configured first.

Related Processes