Found 2 relevant articles
-
Resolving 'Bad magic number in super-block' Error with resize2fs in CentOS 7
This technical article provides an in-depth analysis of the 'Bad magic number in super-block' error encountered when using resize2fs command in CentOS 7 systems. Through comprehensive examination of filesystem type identification, LVM extension procedures, and correct filesystem resizing methods, it offers a complete technical guide from problem diagnosis to solution implementation. The article explains the differences between XFS and ext4 filesystems with practical case studies and presents the correct operational steps using xfs_growfs command.
-
Practical Methods for Retrieving Running JVM Parameters: A Comprehensive Analysis from jps to jcmd
This article delves into various methods for obtaining running JVM parameters in Java production environments, with a focus on extracting key parameters such as -Xmx and -Xms. Centered on the jps command, it details the usage of its -lvm option while comparing the advantages and disadvantages of the jcmd tool as a modern alternative. Through practical code examples and operational steps, the article demonstrates how to monitor JVM parameters with minimal disruption, meeting the stability requirements of production servers. It also discusses command variations across different operating systems and best practices, providing comprehensive technical reference for Java developers.